kev Posted March 31, 2003 Share Posted March 31, 2003 Hi there I have to create a new payment option for a new payment gateway. How do I go about doing this? This is the details that I have at the moment. 1. It's like worldpay&paypal where the user is redirected to a secure payment form where the user will have to enter credit card details. 2. ACTION="https://www.paygate.co.za/online/authorization.asp?PayGateID=10011013800&OrderNumber=1&Amount=20.00&ReturnURL=http://www.paygate.co.za/pgDemo/pgDemo5.asp" ----------- What all this means https://www.paygate.co.za/online/authorization.asp This is the URL (web address) of the PayGate Payment page. The https denotes that this is a secure site and any information is encrypted before it is sent over the internet. PayGateID The ID is unique to each PayGate client. It ensures that all payments received are credited directly to the clients bank account. Everytime you use the PayGate system, you must supply your PayGate ID. To TEST your system use a PayGateID of 10011013800. This will route the transaction to our TEST server. The transaction will be processed in a similar manner to a live transaction, but it will NOT be sent to the bank. The transactions will sometimes return successfully and sometimes with an error, to enable you to test both scenarios. OrderNumber The order number is supplied by you. It is your reference to this transaction. When we return control back to you, we pass the same order number back so you can track your transaction. Amount This amount is the total amount (South African Rand) for the order. This amount will be deducted from your customers credit card and credited to your bank account. ReturnURL Once the transaction is completed, the PayGate system will return the customer to a page on your website.The page the customer must see is specified in this field. PayGate will return control to the URL you specify in the ReturnURL field, and append a number of parameters. The format of the ReturnURL returned by PayGate is : your ReturnURL?PAYGATEID=your PayGateID&ORDERNO=your OrderNumber&TRANSTYPE =transaction type &TRANSSTATUS=0/1/2&RESULTCODE=result code&AUTHCODE=auth code from bank&AMOUNT=transaction amount&DESC=result code description TRANSTYPE For system use only. Will be set to Auth. TRANSSTATUS The status of the transaction. 0=Not Done. There was a technical problem and the transaction didn't get sent to the bank. 1=Approved. Refer to the AuthCode parameter for the Authorization code. 2=Declined. Refer to the ResultCode or the Desc parameter for the reason why. RESULTCODE Code indicating the result of the transaction. Refer to the PGResult.ini file (available from the download page for a complete list). The description corresponding to this code is in the Desc parameter. AUTHCODE If the transaction is Approved by the bank, then the authorization code will be placed in this field. DESC Description of the ResultCode. For example http://www.paygate.co.za/pgDemo/pgDemo5.as...6&DESC=Declined ------------ What do you guys think about this? Please let me know Thanks Kevin ----------- K E V I N ----------- Link to comment Share on other sites More sharing options...
danderso Posted April 1, 2003 Share Posted April 1, 2003 I also am trying to create a new payment module. Would appreciate any pointers on how to do this with oscommerce. Link to comment Share on other sites More sharing options...
danderso Posted April 1, 2003 Share Posted April 1, 2003 Hey Kev, What version are you using? I'm setting up a payment module for Preview release 2.1 - i know it's not the current one, but i've made alot of mods to it already, and i'm pretty committed to it. Anyway, I found a payment module for 2.1 called "iongate" that i'm using as a template, and working from there. Go to the "downloads > contributions > payment modules" section, there's lots of stuff that you could use to tutor yourself with. Link to comment Share on other sites More sharing options...
kev Posted April 2, 2003 Author Share Posted April 2, 2003 Hi dale I'm using 2.2 MS1, can you possibly email me what you have done so far? Thanks Kevin ----------- K E V I N ----------- Link to comment Share on other sites More sharing options...
danderso Posted April 2, 2003 Share Posted April 2, 2003 CC Hi Kevin, I'm not sure if 2.2 has the same structure, but I'm guessing it's pretty similar. I'm using 3 modules as my 'jumping off points'. I've gone and downloaded the IonGate payment module from the contributions section (just because it was about the only thing I could find that was specifically for 2.1), and I'm also using the "sample.php" source, and also the "cc.php" that came with the distribution. Between these 6 files (there's 2 files for each module, the actual functions, and then the language file), I've been able to peice together what I need to do. It turns out that Curl is actually what's putting it all together for me. I'm setting up E-Xact's form-post for PHP credit card authentication, and curl goes and does the external work so that my user doesnt actually leave my online store site. I'll send you all the files that i'm working with if you send an e-mail directly to me. I'll also post this to the site for others to use as a reference. Dale. Link to comment Share on other sites More sharing options...
reason Posted April 3, 2003 Share Posted April 3, 2003 Anyone seen any payment modules for Innovative Gateway? Thanks, Rod Link to comment Share on other sites More sharing options...
danderso Posted April 3, 2003 Share Posted April 3, 2003 what's innovative gateway? what kind of method does oscommerce need to use to talk to it? Link to comment Share on other sites More sharing options...
reason Posted April 3, 2003 Share Posted April 3, 2003 Innovative Gateway is a payment gateway. I can use curl and SSL to post data to the gateway via HTTPS. I was looking to see if anyone had already built a module for Innovative Gatway. http://www.innovativegateway.com Thanks, Rod Link to comment Share on other sites More sharing options...
danderso Posted April 3, 2003 Share Posted April 3, 2003 not to overlook the obvious, and i'm not being a dink, but have u looked in the contributions section? what version of oscom are u using? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.