From 84590ff486e56b23de7471609d3b719a43b687b2 Mon Sep 17 00:00:00 2001 From: Oswin-san Date: Tue, 8 Oct 2024 19:58:34 +0530 Subject: [PATCH] fix #62 --- .../doctype/razorpay_settings/razorpay_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py b/payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py index 7394456f..d86627d8 100644 --- a/payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py +++ b/payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py @@ -201,7 +201,7 @@ def create_order(self, **kwargs): # Creating Orders https://razorpay.com/docs/api/orders/ # convert rupees to paisa - kwargs["amount"] *= 100 + kwargs["amount"] = int(kwargs["amount"] * 100) # Create integration log integration_request = create_request_log(kwargs, service_name="Razorpay")