Ver a proveniência

fix: pass currency to razorpay checkout

pull/2/head
Jannat Patel há 3 anos
ascendente
cometimento
2e4f03de3b
2 ficheiros alterados com 2 adições e 0 eliminações
  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 Ver ficheiro

@@ -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 Ver ficheiro

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




Carregando…
Cancelar
Guardar