Results 1 to 5 of 5

Payment Asia (International) Limited

This is a discussion on Payment Asia (International) Limited within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; My client has a payment gateway setup with Payment Asia (International) Limited. They have sent through this code to implement ...

      
  1. #1
    Member
    Join Date
    Jun 2008
    Posts
    73
    Rep Power
    4


    Default Payment Asia (International) Limited

    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

    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>
    And then this on the success page I guess.

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

  2. #2
    Member
    Join Date
    Jun 2008
    Posts
    73
    Rep Power
    4


    Default Re: Payment Asia (International) Limited

    Any takers on this one?

  3. #3
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,428
    Rep Power
    48


    Smile Re: Payment Asia (International) Limited

    kerryanne,

    You are not asking a simple question ... creating a new payment module is not a 10 minute task.

    You could read this which provides background on creating payment modules.

    You could also try and edit a simple payment module such as Paymate 2.0 which is in a single php file (+ a language file). Combined with the post above you should be able to edit it to your needs.

    Or get them to sign up to an Asian Payment processor who already have a module for oscommerce. Eg. AsianPay

    Regards,
    pgmarshall
    _______________________________

  4. #4
    Member
    Join Date
    Jun 2008
    Posts
    73
    Rep Power
    4


    Default Re: Payment Asia (International) Limited

    Thanks for the info much appreciated

  5. #5
    Member
    Join Date
    Jun 2008
    Posts
    73
    Rep Power
    4


    Default Re: Payment Asia (International) Limited

    Wondering if there is anyone who would be able to complete this job and what would the fee be?

    Thanks

Similar Threads

  1. Contact us limited to guest
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 03-07-2009, 09:53 AM
  2. Contact us limited to guest
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 03-07-2009, 09:10 AM
  3. Limited Stock by Article
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 02-13-2007, 04:00 PM
  4. National and International shipping and payment problem
    By SnowBord in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 02-20-2005, 12:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •