My client has a payment gateway setup with Payment Asia (International) Limited.
They have sent through this code to implement with the site but I have no clue on how to go about this.
Could anyone please help?
I am assuming I will have to replace the usual confirm button with the below code but my client may also want to use paypal.
Code they suggest
And then this on the success page I guess.Code:<form name='form1' action='https://secure.paymentasia.com/payment/' method="post"> <input name="merchantId" type="text" value="" /> <input name="successUrl" type="text" value="" /> <input name="cancelUrl" type="text" value="" /> <input name="failUrl" type="text" value="" /> <input name="orderRef" type="text" value="" /> <input name="amount" type="text" value="" / <input name="lang" type="text" value="" /> <input name="currCode" type="text" value="" /> <input name="payType" type="text" value="" /> <input name="payMethod" type="text" value="" /> <input name="remark" type="text" value=”" /> <input name="" type="submit" value="Submit" /> </form>
Code:<?php // Print out 'OK' to notify us you have received the payment result echo "OK"; if ($successcode=="0"){ // Transaction Accepted // *** Add the Security Control here, to check the currency, amount with the // *** merchant’s order reference from your database, if the order exist then // *** accepted. // Update your database for Transaction Accepted and send email or notify your // customer. .... }else{ // Transaction Rejected // Update your database for Transaction Rejected ..... } ?>




LinkBack URL
About LinkBacks










Bookmarks