-
- AKS

-
Total Posts: 4
Joined: 2007-11-20
|
Hi,
This is slightly urgent. I am working on a remotely hosted Payment Gateway like 2CO and Paypal.
I have followed the instructions on creating a new payment module.
My payment process works as follows
1. Customer clicks on place order button
2.
Model/Method.php/onOrderValidate
method obtains a Payment ID and a redirect URL from remote gateway using Curl HTTPS POST request. I am able to get this URL and Payment ID which are used for generating redirection URL.
3. Customer is redirected to the Payment Gateway web site (like 2CO/Paypal) where customer is supposed to enter CC details and CVV information in 3DSecure/VBV environment. I am stuck at this step onwards.
4. Upon successfull payment, the gateway redirects me back to a success page which I posted using Curl in step 2
5. Upon error, gateway redirects me back to a failure page which is also posted using Curl in step 2.
I am stuck at step 3, 4 and 5. Please help. I have gone through the ExpressController of Paypal Express but unable to correlate its code with the new payment module example given in forums.
Below are my problems for which I need help.
Step 3 - I am not able to redirect. I tried PHP header, $this->setRedirect(), $this-getMethod()->setRedirect(). Everything takes me back to the shopping cart page. I am doing these in the onOrderValidate method of the Model class after obtaining redirect URL from remote PG.
Step 4 - which URL should I pass for successfull payment?
Step 5 - which URL should I pass for failed payment?
And, most importantly I want to save the order before redirection so that if customer wishes, it can pay for the order later through My Account section.
Please respond urgently as I am planning to go live with this project asap and I am stuck at this step.
Your help and attention is greatly appreciated.
Cheers!
|