Open saifobeidat opened 4 years ago
hello saif, In MVC the URL used will always be based on the Action. If you are doing a post, and want to show the user a detail page after the post, use this:
https://en.wikipedia.org/wiki/Post/Redirect/Get
also this will prevent duplicate purchase from your side.
any other query or more details please send email to: integration@payfort.com to proceed with your ticket.
Thanks
Hi @MohammadHananny ,
We're using https://docs.payfort.com/docs/api/build/index.html#redirection to handle the payment process, we have set the return_url, which will be open to the customer once the payment is done. but the main issue, that the return URL will be called only after the user click on ( Back to merchant button ) , so we can't track and capture the payment status before the user click the button. isn't there a notification URL or something similar which will be hit immediately once the payment succeed or failed.
please contact integration@payfort.com to help you on this
@saifobeidat @AhmedHeasat I'm facing the same issue, did you figure out the solution ?
Hi,
I checked the Documentation and the attached sample, and I concluded that all you need is to submit a form with the necessary data:
This works perfectly and it redirects me to https://sbcheckout.payfort.com/FortAPI/paymentPage?S=1&#no-back-button and from that point I can proceed successfully in the payment process, But my issue is that I think this is insecure once all data is exposed. so I decided to call this form from a c# controller so I can hide some data like access code.
I tried to execute the method that makes the submission process but unfortunately it keeps redirecting me to http://localhost:9445/umbraco/surface/payment/pay#no-back-button rather than https://sbcheckout.payfort.com
Yes I know it opens the expected screen but with a wrong URL which causes errors when I try to proceed in payment, see below image:
I am using Asp.net MVC, any help would be appreciated.
Thanks !