Przeglądaj źródła

fix: pass currency to razorpay checkout

pull/2/head
Jannat Patel 3 lat temu
rodzic
commit
2e4f03de3b
2 zmienionych plików z 2 dodań i 0 usunięć
  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 Wyświetl plik

@@ -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 Wyświetl plik

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






Ładowanie…
Anuluj
Zapisz