JamieGill Posted February 22, 2013 Share Posted February 22, 2013 Hi Guys, Just a quick enquiry Im currently having a crack at doing a Redirect payment gateway to Servebase. They have sent me the relevant details which Ive created a form to pass the relevant UN/PW/Amount which then sends me to their URL which generates a successful session ID Message. This is where Im hitting a brick wall as thats classed as the Response Request which if I use another form to send the session ID and UN it opens the gateway fine. How would I send the UN and Session ID back upon a Response so when the first form goes it collects it and relays it. As obviously I cant create two forms it all has to be done one Pay now button. Any info to get me passed this brickwall would be great. Thanks in advance J Quote Link to comment https://forums.phpfreaks.com/topic/274821-redirect-payment-gateway/ Share on other sites More sharing options...
codebyren Posted February 22, 2013 Share Posted February 22, 2013 I've never worked with (or heard of) Servebase but I suspect you need to use something like cURL to do the Response Request part of it - and then present only the "second form" to the end-user. Upon submitting this, they will be redirected to the payment gateway to continue payment. For a decent tutorial on cURL, you can check out this one at Nettuts. Quote Link to comment https://forums.phpfreaks.com/topic/274821-redirect-payment-gateway/#findComment-1414278 Share on other sites More sharing options...
JamieGill Posted February 25, 2013 Author Share Posted February 25, 2013 I've never worked with (or heard of) Servebase but I suspect you need to use something like cURL to do the Response Request part of it - and then present only the "second form" to the end-user. Upon submitting this, they will be redirected to the payment gateway to continue payment. For a decent tutorial on cURL, you can check out this one at Nettuts. Thanks Ill take a look but that makes sense on how it should be done. I'll take a look at the tutorial today, as the client wants it asap if I still dont achieve the goal if your interested in the job please do not hesitate to get in touch. Many thanks J Quote Link to comment https://forums.phpfreaks.com/topic/274821-redirect-payment-gateway/#findComment-1414793 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.