瀏覽代碼

docs: update readme about installation & uninstallation about custom fields

pull/2/head
phot0n 2 年之前
父節點
當前提交
ccf4e28f76
共有 2 個檔案被更改,包括 3 行新增1 行删除
  1. +2
    -0
      README.md
  2. +1
    -1
      payments/public/js/razorpay.js

+ 2
- 0
README.md 查看文件

@@ -19,6 +19,8 @@ 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](payments/utils) directory. The utils are written in [utils.py](payments/utils/utils.py) and then imported into the [`__init__.py`](payments/utils/__init__.py) file for easier importing/namespacing.

[overrides](payments/overrides) directory has all the overrides for overriding standard frappe code. Currently it overrides WebForm DocType controller as well as a WebForm whitelisted method.


+ 1
- 1
payments/public/js/razorpay.js 查看文件

@@ -3,7 +3,7 @@
Razorpay Payment

1. Include checkout script in your code
{{ include_script('checkout.bundle.js) }}
{{ include_script('/assets/payments/js/razorpay.js') }}

2. Create the Order controller in your backend
def get_razorpay_order(self):


Loading…
取消
儲存