Post by 528491 » Mon Dec 16, 2013 4:14 pm

Hello,
I need help in getting started in right direction. I learned so far that, in order to build a custom extension for a 3rd party Gateway, I need to customise an already existing extension (such as Paypal Standard) and simply change it's settings to match the requirements of this 3rd party Gateway.

I got the following settings from this 3rd party Gateway provider:

Code: Select all

<form name=“pay“ action=“https://form.that3rdpartygateway.com/Authorization.aspx“ method=“POST“>
<input type=“hidden“ name=“ShopID“ value=“somevalue“>
<input type=“hidden“ name=“ShoppingCartID“ value=“somevalue“>
<input type=“hidden“ name=“TotalAmount“ value=“somevalue“>
<input type=“hidden“ name=“Signature“ value=“somevalue“>
<input type=“hidden“ name=“ReturnURL“ value=“http://mywebshop.com/answer.aspx“>
<input type=“hidden“ name=“CancelURL“ value=“http://mywebshop.com/cancel.aspx“>
<input type=“hidden“ name=“ReturnErrorURL“ value=“http://mywebshop.com/error.aspx“>
<input type=“submit“ value=“Buy“>
</form>
What I need to ask is following:

Which of the existing Gateways that are already incorporated into Opencart would best fit this task?
I started with Paypal Standard, since in catalog\view\theme\*\template\payment\pp_standard.tpl I found the most similar form code. In Paypal Pro, for example, there is no such similar form code, so I decided to build upon Paypal Standard.

But ended up facing wall as early as in admin area(!), since in Paypal Standard, the extension connects with Paypal website and asks for e-mail address, which nothing of similar I cannot find in this 3rd party Gateway I am trying to build extension for. I figure that, in admin area, the only thing necessary would be the settings for secret key and the webpage that the browser visits upon clicking on "buy" button. I am stuck.

Can you please let me know if I am doing this in the right direction, are there any tutorials or documentations for building a custom Gateway extension, and is Paypal Standard the best base for this?

Thank you in advance for helping.

New member

Posts

Joined
Tue Apr 02, 2013 6:05 pm

Post by MarketInSG » Tue Dec 17, 2013 12:42 am

your 3rd party gateway asks for signature, shopping cart id, and shop id. That will be the values that replaces the 'email' field on paypal standard


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by 528491 » Tue Dec 17, 2013 2:17 pm

Thank you for these details. I'll continue to solve this task, if I ever make it through I'll post my findings for anyone else interested or in need for this. I'm not a programmer so it might take me a while to figure this out.

New member

Posts

Joined
Tue Apr 02, 2013 6:05 pm
Who is online

Users browsing this forum: No registered users and 3 guests