瀏覽代碼

fix: pass currency to razorpay checkout

pull/2/head
Jannat Patel 3 年之前
父節點
當前提交
2e4f03de3b
共有 2 個檔案被更改,包括 2 行新增0 行删除
  1. +1
    -0
      payments/templates/includes/razorpay_checkout.js
  2. +1
    -0
      payments/templates/pages/razorpay_checkout.py

+ 1
- 0
payments/templates/includes/razorpay_checkout.js 查看文件

@@ -3,6 +3,7 @@ $(document).ready(function(){
var options = { var options = {
"key": "{{ api_key }}", "key": "{{ api_key }}",
"amount": cint({{ amount }} * 100), // 2000 paise = INR 20 "amount": cint({{ amount }} * 100), // 2000 paise = INR 20
"currency": "{{ currency }}",
"name": "{{ title }}", "name": "{{ title }}",
"description": "{{ description }}", "description": "{{ description }}",
"subscription_id": "{{ subscription_id }}", "subscription_id": "{{ subscription_id }}",


+ 1
- 0
payments/templates/pages/razorpay_checkout.py 查看文件

@@ -17,6 +17,7 @@ expected_keys = (
"payer_name", "payer_name",
"payer_email", "payer_email",
"order_id", "order_id",
"currency"
) )






Loading…
取消
儲存