razorpay / razorpay-python

Razorpay Python SDK
https://pypi.python.org/pypi/razorpay
MIT License
154 stars 81 forks source link

How to automate the modal payment flow via API #228

Closed bhasinrajesh closed 1 year ago

bhasinrajesh commented 2 years ago

I am trying to automate the payment part of razorpay in my test to check ordering on our website.The problem is for the final step of payment I am not able to automate it using just APIs - since it uses the payment modal of razorpay and i have not been able to find the corresponding APIs for it.

I tried with createPaymentJson

payment = client.payment.createPaymentJson({ "amount": "2500", "currency": "INR", "email": "gaurav.kumar@example.com", "contact": "9123456789", "order_id": "order_KFusTJQtqZ4vVg", "method": "netbanking", "bank": "HDFC" })

but even that is showing - razorpay.errors.BadRequestError: The requested URL was not found on the server.

ankitdas13 commented 1 year ago

@bhasinrajesh apologise for the long delay. Your account does not have access to this feature, which is why you are receiving this error. To enable this feature, you will need to contact support or use the chat option on your merchant dashboard.

Please let us know if this can help you or if it has already been resolved.

bhasinrajesh commented 1 year ago

Yeah we did make a query using our business account.It didnt quite work like we expected.Thanks anyways you can close this.

ankitdas13 commented 1 year ago

Thanks @bhasinrajesh for confirming us. We are closing this issue for now, but if you still have any questions, please feel free to ask or you can connect to the support portal.