From fdff13cb290ce1bc454bd703b28ffd4d90270244 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Tue, 31 May 2022 12:51:02 +0530 Subject: [PATCH] fix: pass currency to razorpay checkout --- frappe/templates/includes/integrations/razorpay_checkout.js | 1 + frappe/templates/pages/integrations/razorpay_checkout.py | 1 + 2 files changed, 2 insertions(+) diff --git a/frappe/templates/includes/integrations/razorpay_checkout.js b/frappe/templates/includes/integrations/razorpay_checkout.js index 2986fcb0fc..3df6ed68ea 100644 --- a/frappe/templates/includes/integrations/razorpay_checkout.js +++ b/frappe/templates/includes/integrations/razorpay_checkout.js @@ -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 }}", diff --git a/frappe/templates/pages/integrations/razorpay_checkout.py b/frappe/templates/pages/integrations/razorpay_checkout.py index aed832119b..942cf6ce5c 100644 --- a/frappe/templates/pages/integrations/razorpay_checkout.py +++ b/frappe/templates/pages/integrations/razorpay_checkout.py @@ -17,6 +17,7 @@ expected_keys = ( "payer_name", "payer_email", "order_id", + "currency" )