From 22581cca040835d6c451fe1da47e0a03d0b5cfa9 Mon Sep 17 00:00:00 2001 From: Oswin Dsouza <106068399+Oswin-san@users.noreply.github.com> Date: Thu, 10 Oct 2024 12:46:34 +0530 Subject: [PATCH] fix: type conversion #62 (#109) --- .../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")