Quantcast
Channel: NBStore Discussions Rss Feed
Viewing all articles
Browse latest Browse all 4081

New Post: Custom Payment Gateway for PayU

$
0
0
Hi Dave,

I was able to debug the w3wp.exe process loading more than 'JustMyCode' and managed to get the gateway provider to successfully post to PayU with the reference retrieved from a SOAP call. I am setting the Order's Bank Authorisation Code property to store this reference. The standard rPost.GetPostHtml(gatewayImg) was not successfully redirecting the the PayU site, so I instead set the objCInfo.BankHtmlRedirect property to html without a form. I saw another issue on this, so out of interest I was able to bypass the need for a form in the following manner:
objCInfo.BankHtmlRedirect = "<meta http-equiv='refresh' content='0;url=" + rPost.Url + "'>";
I imagine if I wanted to retain the loading image I would place the same content as in the source for RemotePost.vb except for the form and any content above it.

Currently it seems the issue is my Return URL. Regardless of whether I use stg/5 or stg/4, only the following method is called:
public override void AutoResponse(int PortalID, System.Web.HttpRequest Request)
Which is strange as I am using the NotifyProvider version.

The URL I am currently using is:
http://www.[url].co.za/[ProductPage]/tabid/[CheckoutTabID]/stg/5/OrdId/[ORDERID]/Default.aspx
*[ActualValuesUsed]
**[VALUEREPLACED]

I am adding the query string programmatically to include PayUExit with either CANCEL or RETURN.

The store is working fine otherwise, though the requirements call for a custom gateway provider specifically.

Viewing all articles
Browse latest Browse all 4081

Trending Articles