Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
phot0n 405de74f80 ci: add precommit and semantic commit workflow 2 år sedan
.github/workflows ci: add precommit and semantic commit workflow 2 år sedan
payments ci: add precommit and semantic commit workflow 2 år sedan
.gitignore refactor(minor): pay -> payments 2 år sedan
.pre-commit-config.yaml ci: add precommit and semantic commit workflow 2 år sedan
MANIFEST.in refactor(minor): pay -> payments 2 år sedan
README.md docs: update readme and license 2 år sedan
commitlint.config.js ci: add precommit and semantic commit workflow 2 år sedan
license.txt docs: update readme and license 2 år sedan
requirements.txt fix: method paths to accomodate new structure 2 år sedan
setup.py feat: add payment and custom field creation utils 2 år sedan

README.md

Payments

A payments app for frappe.

Installation

  1. Install bench & frappe.

  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.

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 frappe 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)