Parcourir la source

fix: pass currency to razorpay checkout

pull/2/head
Jannat Patel il y a 3 ans
Parent
révision
2e4f03de3b
2 fichiers modifiés avec 2 ajouts et 0 suppressions
  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 Voir le fichier

@@ -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 Voir le fichier

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




Chargement…
Annuler
Enregistrer