Selaa lähdekoodia

fix: pass currency to razorpay checkout

pull/2/head
Jannat Patel 3 vuotta sitten
vanhempi
commit
2e4f03de3b
2 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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 Näytä tiedosto

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


+ 1
- 0
payments/templates/pages/razorpay_checkout.py Näytä tiedosto

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




Ladataan…
Peruuta
Tallenna