Hi everone,
I'm in the process of creating my first Oscar powered shop ( loving it so far ). But i'm afraid I need some help with communicating with my payment service provider ( Sisow.nl )
So far i've managed to create my own basic api for getting a list of available payment options which are shown on the PaymentDetailsView.
When a customer selects a valid payment option and clicks next, the payment preview page is shown as expected. The customer then clicks 'Place Order'.
At this point we arive at the handle_payment method of the custom extension of PaymentDetailsView class. My custom api communicates with the PSP and generates a url for redirection towards the payment portal. I've tested the generated url outside of Oscar and it works.
This is where I get stuck..
How do I:
- as the user clicks 'Place order' redirect the user to the url provided by my custom gateway api for the payment process to begin?
https://www.sisow.nl/Sisow/iDeal/Simulator.aspx?merchantid={myid}&txid={transactionid}&sha1={sha1hash}
- after payment is handled, read the response url? Btw: I can provide my own response url
if response signal is correct, i will add payment source and payment event accordingly. Otherwise I must notify the user about errors.
I tried looking at the oscar paypal, datacash apps. But can't wrap my brain around them.
If someone can tell me how to open the psp page with my url, do I return back to the PaymentDetailView and read a get parameter to verify the payment status from my PSP? I really have no clue where to begin.
Any help with this would be greatly appreciated!
PS: If I manage to get this working I will work on releasing this Sisow PSP app for others to use :)
( this will allow for Dutch developers to start using Oscar since iDeal payments are the defacto standard in the Netherlands )