Solidus rails payment gateway integration with callback url #3915
Replies: 3 comments
-
I'm not familiar with this particular gateway, but have you taken a look at the spree-razorpay extension and they handle this? There are also other gateways like PayPal or Affirm that have similar flows, so depending on the specifics you might be able to use one of those as a reference for how this should work. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure how the implementation was done and how this gateway works 🤔
Right now, I see you are probably trying to do a gateway operation. This is usually done via I noticed that for To get an idea, you can take a look on:
When you have these components and the dedicated partial views, you will have the possibility to interact with the gateway even on the admin side, for example, for capture, refund, or void a payment. |
Beta Was this translation helpful? Give feedback.
-
Sorry to jump on it so late, but there is a solidus_extension for razorpay. |
Beta Was this translation helpful? Give feedback.
-
I am integrating a payment gateway with my Solidus app, the payment gateway I am using is 'Razorpay'
The payment gateway, handles the payment through a modal popup on their servers directly, and then initiates a callback url on the success or failure of the payment.
How do I handle this in Solidus? I created a POST request to capture the details, at 'checkout/verify_payment', where I verify the payment and check if its a success or a failure, I am not sure how do I proceed on the success callback.
Beta Was this translation helpful? Give feedback.
All reactions