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>
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.