4. AsiaPay

AsiaPay is a an electronic payment solution, technology vendor and payment service provider covering international credit card, debit card and other prepaid card payments. It is an accredited payment processor and payment gateway solution vendor for banks, certified IPSP for merchants, certified international 3-D Secure vendor for Visa, MasterCard, American Express, and JCB. Its payment solutions, PayDollar, PesoPay and SiamPay, are multi-currency, multi-lingual, multi-card, and multi-channel. AsiaPay has concurrent partnerships with other Asian debit and mobile payment providers such as China UnionPay, Alipay, 99Bill, PPS, Globe GCash, Smart Money, BancNet, MyClear, POLi, and other major banks in Thailand allowing Asian consumers to shop online using their mobile devices, ATMs, and banking facilities.

Figure 1. Instantiate AsiaPay
$asiapay = eden('asiapay');
Figure 2. AsiaPay Methods
Method Arguments Returns Description
$asiapay->clientPost($merchantId, $test = true, $hash = NULL);
  1. *string
  2. *boolean
Eden_Asiapay_Client Returns asiapay client post
$asiapay->directClient($merchantId, $test = true, $hash = NULL);
  1. *string
  2. *boolean
Eden_Asiapay_Directclient Returns asiapay direct client

Client

Figure 3. Instantiate Client
$client = eden('asiapay')->client('[MERCHANT_ID]');
Figure 4. Client Methods
Method Arguments Returns Description
$client->setMpsmode($mpsMode);
  1. string
Eden_Asiapay_Client Set Multi-Currency Processing Service (MPS) Mode For merchant who applied MPS function Accepted values are: NIL or not provide – Disable MPS (merchant not using MPS) SCP – Enable MPS with ‘Simple Currency Conversion’ DCC – Enable MPS with ‘Dynamic Currency Conversion’ MCP – Enable MPS with ‘Multi Currency Pricing’
$client->setRemark($remark);
  1. string
Eden_Asiapay_Client A remark field for you to store additional data that will not show on the transaction web page
$client->setRedirect($redirect);
  1. string|integer
Eden_Asiapay_Client Number of seconds auto-redirection to merchant’s site takes place at PesoPay’s Payment Success / Fail page
$client->disablePrint(); none Eden_Asiapay_Client Disable the print function at payment result page
$client->disableFailRetry(); none Eden_Asiapay_Client Disable the retry function when the transaction is rejected
$client->setCurrencyCode($currencyCode);
  1. string
Eden_Asiapay_Client Set the currency of the payment:
$client->setPaymentType($payType);
  1. string
Eden_Asiapay_Client Set payment type
$client->setLanguage($language);
  1. string
Eden_Asiapay_Client Set language of the payment page
$client->setPaymentMethod($payMethod);
  1. string
Eden_Asiapay_Client The payment method Accepted values are: ALL –All the available payment method CC – Credit Card Payment VISA – Visa Payment Master – MasterCard Payment JCB – JCB Payment AMEX – AMEX Payment Diners – Diners Club Payment PAYPAL – PayPal By PesoPay Payment BancNet – BancNet Debit Payment GCash – GCash Payment SMARTMONEY – Smartmoney Payment
$client->createForm($amount, $successUrl, $failUrl, $cancelUrl);
  1. integer|float
  2. - The total amount your want to charge the customer for the provided currency
  3. url
  4. - A Web page address you want us to redirect upon the transaction being rejected by us.
  5. url
  6. - A Web page address you want us to redirect upon the transaction being rejected by us.
  7. url
  8. - A Web page address you want us to redirect upon the transaction being cancelled by your customer
string Create asia pay form

Direct Client

Figure 5. Instantiate Direct Client
$direct = eden('asiapay')->directclient('[MERCHANT_ID]');
Figure 6. Direct Client Methods
Method Arguments Returns Description
$direct->setMpsmode($mpsMode);
  1. string
Eden_Asiapay_Directclient Set Multi-Currency Processing Service (MPS) Mode For merchant who applied MPS function Accepted values are: NIL or not provide – Disable MPS (merchant not using MPS) SCP – Enable MPS with ‘Simple Currency Conversion’ DCC – Enable MPS with ‘Dynamic Currency Conversion’ MCP – Enable MPS with ‘Multi Currency Pricing’
$direct->setRemark($remark);
  1. string
Eden_Asiapay_Directclient A remark field for you to store additional data that will not show on the transaction web page
$direct->setRedirect($redirect);
  1. string|integer
Eden_Asiapay_Directclient Number of seconds auto-redirection to merchant’s site takes place at PesoPay’s Payment Success / Fail page
$direct->disablePrint(); none Eden_Asiapay_Directclient Disable the print function at payment result page
$direct->disableFailRetry(); none Eden_Asiapay_Directclient Disable the retry function when the transaction is rejected
$direct->setCurrencyCode($currencyCode);
  1. string
Eden_Asiapay_Directclient Set the currency of the payment:
$direct->setPaymentType($payType);
  1. string
Eden_Asiapay_Directclient Set payment type
$direct->setLanguage($language);
  1. string
Eden_Asiapay_Directclient Set language of the payment page
$direct->setPaymentMethod($payMethod);
  1. string
Eden_Asiapay_Directclient The payment method Accepted values are: VISA – Visa Payment Master – MasterCard Payment JCB – JCB Payment AMEX – AMEX Payment
$direct->createForm($amount, $successUrl, $failUrl, $cancelUrl, $cardNumber, $securityCode, $cardHolder, $month, $year);
  1. integer|float
  2. - The total amount your want to charge the customer for the provided currency
  3. url
  4. - A Web page address you want us to redirect upon the transaction being rejected by us.
  5. url
  6. - A Web page address you want us to redirect upon the transaction being rejected by us.
  7. url
  8. - A Web page address you want us to redirect upon the transaction being cancelled by your customer
  9. credit
  10. - card number
  11. string
  12. - Credit Card Verification Code
  13. string
  14. - Credit card holder name
  15. string
  16. - Credit card expiry month
  17. string
  18. - Credit card expiry year
string Create asia pay form

© 2012 Openovate Labs. All rights reserved.