Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
Anoop 79ffde8cd0 Initial il y a 2 ans
.github Initial il y a 2 ans
payments Initial il y a 2 ans
.gitignore Initial il y a 2 ans
.pre-commit-config.yaml Initial il y a 2 ans
MANIFEST.in Initial il y a 2 ans
README.md Initial il y a 2 ans
commitlint.config.js Initial il y a 2 ans
license.txt Initial il y a 2 ans
requirements.txt Initial il y a 2 ans
setup.py Initial il y a 2 ans

README.md

Payments

A payments app for xhiveframework.

Installation

  1. Install bench & xhiveframework.

  2. Once setup is complete, add the payments app to your bench by running

    $ bench get-app payments
    
  3. Install the payments app on the required site by running

    $ bench --site <sitename> install-app payments
    

App Structure & Details

App has 2 modules - Payments and Payment Gateways.

Payment Module contains the Payment Gateway DocType which creates links for the payment gateways and Payment Gateways Module contain all the Payment Gateway (Razorpay, Stripe, Braintree, Paypal, PayTM) DocTypes.

App adds custom fields to Web Form for facilitating payments upon installation and removes them upon uninstallation.

All general utils are stored in utils directory. The utils are written in utils.py and then imported into the __init__.py file for easier importing/namespacing.

overrides directory has all the overrides for overriding standard xhiveframework code. Currently it overrides WebForm DocType controller as well as a WebForm whitelisted method.

templates directory has all the payment gateways’ custom checkout pages.

License

MIT (license.txt)