Payment Request
Init PGW SDK
Class PGWSDKParamsBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Android: Constructors (context, apiEnvironment) |
Context, APIEnvironment |
M |
PGW SDK API endpoint environment. • SDK constructor. |
clientId |
String |
O |
Unique client ID. • In UUID format. |
locale |
String |
O |
Locale of API response. Important: • if locale is exist, api will response with requested locale. • if clientID exist, api will response with user preference locale. |
log |
Boolean |
O |
PGW SDK log information. |
Global/Local Customer Token Payment (GCARD / LCARD)
Class CustomerTokenPaymentBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode, token) |
PaymentCode, String |
C |
Init class constructor with payment code and customer token ID. • SDK constructor. |
Constructors (channelCode, token) |
String, String |
C |
Init class constructor with payment channel code and customer token ID. • SDK constructor. |
expiryMonth |
Integer |
O |
Credit card expiry month. * Only use for update customer token expiry month. |
expiryYear |
Integer |
O |
Credit card expiry year. * Only use for update customer token expiry year. |
securityCode |
String |
O |
Credit card security code. |
pin |
String |
O |
Credit card PIN. |
installmentInterestType |
String |
C |
Installment interest type. Refer to: Installment Interest Type Code |
installmentPeriod |
Integer |
C |
Installment period, in months. |
installmentPayLaterPeriod |
Integer |
C |
Installment pay later period. |
fxRateId |
String |
O |
Exchange rate ID. Refer to: Exchange Rate Response API |
name |
String |
O |
Customer's name. |
String |
O |
Customer’s email address. |
|
mobileNo |
String |
O |
Customer’s mobile number. |
userAddress |
UserAddress |
O |
Customer's address. userAddress: User Address Builder: |
paymentExpiry |
String |
O |
Payment expiry. The date/time when the customer must complete the payment. Payments completed after the expiry date/time will be rejected. Date Format: yyyy-MM-dd HH:mm:ss |
customerNote |
String |
O |
Customer's note. |
loyaltyPoints |
Array<LoyaltyPoint> |
C |
Loyalty points redeem list. loyaltyPoints: Refer Loyalty Point |
Global/Local Card Payment (GCARD / LCARD / LCARDIPP)
Class CardPaymentBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode, cardNo) |
PaymentCode, String |
C |
Init class constructor with payment code and credit card number. • SDK constructor. |
Constructors (channelCode, cardNo) |
String, String |
C |
Init class constructor with payment channel code and credit card number. • SDK constructor. |
expiryMonth |
Integer |
O |
Credit card expiry month. |
expiryYear |
Integer |
O |
Credit card expiry year. |
securityCode |
String |
O |
Credit card security code. |
pin |
String |
O |
Credit card PIN. |
bank |
String |
O |
Credit card issuer bank name. |
country |
String |
O |
Credit card issuer country code. |
tokenize |
Boolean |
C |
Allows customer to tokenize card information. Allows merchant to indicate if the Store Card feature is enabled. • false – No (default) • If true, 2C2P Payment Gateway will return Customer Token on Payment Inquiry. |
installmentInterestType |
String |
C |
Installment interest type. Refer to: Installment Interest Type Code |
installmentPeriod |
Integer |
C |
Installment period, in months. |
installmentPayLaterPeriod |
Integer |
C |
Installment pay later period. |
fxRateId |
String |
O |
Exchange rate ID. Refer to: Exchange Rate Response API |
name |
String |
O |
Customer’s name. |
String |
O |
Customer’s email address. |
|
mobileNo |
String |
O |
Customer’s mobile number. |
userAddress |
UserAddress |
O |
Customer's address. userAddress: User Address Builder: |
paymentExpiry |
String |
O |
Payment expiry. The date/time when the customer must complete the payment. Payments completed after the expiry date/time will be rejected. Date Format : yyyy-MM-dd HH:mm:ss |
customerNote |
String |
Customer's note. |
|
loyaltyPoints |
Array<LoyaltyPoint> |
Loyalty points redeem list. LoyaltyPoints: Refer Loyalty Point |
Internet Banking (IMBANK)
Class InternetBankingBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) |
PaymentCode |
C |
Init class constructor with payment code. • SDK constructor. |
Constructors (channelCode, agentCode, agentChannelCode) |
String, String, String |
C |
Init class constructor with payment channel code, agent code and agent channel code. • SDK constructor. |
fxRateId |
String |
O |
Exchange rate ID. Refer to: Exchange Rate Response API |
name |
String |
O |
Customer’s name. |
String |
O |
Customer’s email address. |
|
mobileNo |
String |
O |
Customer’s mobile number. |
userAddress |
UserAddress |
O |
Customer's address. userAddress: User Address Builder: |
paymentExpiry |
String |
O |
Payment expiry. The date/time when the customer must complete the payment. Payments completed after the expiry date/time will be rejected. Date Format : yyyy-MM-dd HH:mm:ss |
customerNote |
String |
O |
Customer's note. |
Pay At Counter (COUNTER)
Class PayAtCounterBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) |
PaymentCode |
C |
Init class constructor with payment code. • SDK constructor. |
Constructors (channelCode, agentCode, agentChannelCode) |
String, String, String |
C |
Init class constructor with payment channel code, agent code and agent channel code. • SDK constructor. |
fxRateId |
String |
O |
Exchange rate ID. Refer to: Exchange Rate Response API |
name |
String |
O |
Customer’s name. |
String |
O |
Customer’s email address. |
|
mobileNo |
String |
O |
Customer’s mobile number. |
userAddress |
UserAddress |
O |
Customer's address. userAddress: User Address Builder: |
paymentExpiry |
String |
O |
Payment expiry. The date/time when the customer must complete the payment. Payments completed after the expiry date/time will be rejected. Date Format : yyyy-MM-dd HH:mm:ss |
customerNote |
String |
O |
Customer's note. |
Self Service Machine (SSM)
Class SelfServiceMachineBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) |
PaymentCode |
C |
Init class constructor with payment code. • SDK constructor. |
Constructors (channelCode, agentCode, agentChannelCode) |
String, String, String |
C |
Init class constructor with payment channel code, agent code and agent channel code. • SDK constructor. |
fxRateId |
String |
O |
Exchange rate ID. Refer to: Exchange Rate Response API |
name |
String |
O |
Customer’s name. |
String |
O |
Customer’s email address. |
|
mobileNo |
String |
O |
Customer’s mobile number. |
userAddress |
UserAddress |
O |
Customer's address. userAddress: User Address Builder: |
paymentExpiry |
String |
O |
Payment expiry. The date/time when the customer must complete the payment. Payments completed after the expiry date/time will be rejected. Date Format : yyyy-MM-dd HH:mm:ss |
customerNote |
String |
O |
Customer's note. |
Web Payment (WEBPAY)
Class WebPaymentBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) |
PaymentCode |
C |
Init class constructor with payment code. • SDK constructor. |
Constructors (channelCode, agentCode, agentChannelCode) |
String, String, String |
C |
Init class constructor with payment channel code, agent code and agent channel code. • SDK constructor. |
fxRateId |
String |
O |
Exchange rate ID. Refer to: Exchange Rate Response API |
name |
String |
O |
Customer’s name. |
String |
O |
Customer’s email address. |
|
mobileNo |
String |
O |
Customer’s mobile number. |
userAddress |
UserAddress |
O |
Customer's address. userAddress: User Address Builder: |
paymentExpiry |
String |
O |
Payment expiry. The date/time when the customer must complete the payment. Payments completed after the expiry date/time will be rejected. Date Format : yyyy-MM-dd HH:mm:ss |
customerNote |
String |
O |
Customer's note. |
cardNo |
String |
O |
Credit card number. |
expiryMonth |
Integer |
O |
Credit card expiry month. |
expiryYear |
Integer |
O |
Credit card expiry year. |
issuedMonth |
Integer |
O |
Credit card issued month. |
issuedYear |
Integer |
O |
Credit card issued year. |
securityCode |
String |
O |
Credit card security code. |
bank |
String |
O |
Credit card issuer bank name. |
country |
String |
O |
Credit card issuer country code. |
tokenize |
Boolean |
O |
Allows customer to tokenize card information. Allows merchant to indicate if the Store Card feature is enabled. • false – No (default) • If true, 2C2P Payment Gateway will return Customer Token on Payment Inquiry . |
Digital Payment (DPAY)
Class DigitalPaymentBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) |
PaymentCode |
C |
Init class constructor with payment code. • SDK constructor. |
Constructors (channelCode) |
String |
C |
Init class constructor with payment channel code. • SDK constructor. |
accountNo |
String |
O |
Customer’s account number. |
token |
String |
O |
Digital payment token. |
fxRateId |
String |
O |
Exchange rate ID. Refer to Exchange Rate Response API |
name |
String |
O |
Customer’s name. |
String |
O |
Customer’s email address. |
|
mobileNo |
String |
O |
Customer’s mobile number. |
userAddress |
UserAddress |
O |
Customer's address. userAddress: User Address Builder: |
paymentExpiry |
String |
O |
Payment expiry. The date/time when the customer must complete the payment. Payments completed after the expiry date/time will be rejected. Date Format : yyyy-MM-dd HH:mm:ss |
tokenize |
Boolean |
O |
Allows customer to tokenize card information. Allows merchant to indicate if the Store Card feature is enabled. • false – No (default) • If true, 2C2P Payment Gateway will return Customer Token on Payment Inquiry |
customerNote |
String |
O |
Customer's note |
QR Payment (QR)
Class QRPaymentBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) |
PaymentCode |
C |
Init class constructor with payment code. • SDK constructor. |
Constructors (channelCode) |
String |
C |
Init class constructor with payment channel code. • SDK constructor. |
type |
String |
O |
QR data type. Refer to: QR Type Code |
fxRateId |
String |
O |
Exchange rate ID. Refer to: Exchange Rate Response API |
name |
String |
O |
Customer’s name. |
String |
O |
Customer’s email address. |
|
mobileNo |
String |
O |
Customer’s mobile number. |
userAddress |
UserAddress |
O |
Customer's address. userAddress: User Address Builder: |
paymentExpiry |
String |
O |
Payment expiry. The date/time when the customer must complete the payment. Payments completed after the expiry date/time will be rejected. Date Format : yyyy-MM-dd HH:mm:ss |
customerNote |
String |
O |
Customer's note. |
Buy Now Pay Later Payment (BNPL)
Class BuyNowPayLaterPaymentBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) |
PaymentCode |
C |
Init class constructor with payment code. • SDK constructor. |
Constructors (channelCode) |
String |
C |
Init class constructor with payment channel code, agent code and agent channel code. • SDK constructor. |
fxRateId |
String |
O |
Exchange rate ID. Refer to: Exchange Rate Response API |
name |
String |
O |
Customer’s name. |
String |
O |
Customer’s email address. |
|
mobileNo |
String |
O |
Customer’s mobile number. |
userAddress |
UserAddress |
O |
Customer's address. userAddress: User Address Builder: |
paymentExpiry |
String |
O |
Payment expiry. The date/time when the customer must complete the payment. Payments completed after the expiry date/time will be rejected. Date Format : yyyy-MM-dd HH:mm:ss |
installmentPayLaterPeriod |
Integer |
O |
Installment pay later period. |
customerNote |
String |
O |
Customer's note. |
Universal Payment (Any type of payment)
Class UniversalPaymentBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) |
PaymentCode |
C |
Init class constructor with payment code. • SDK constructor. |
Constructors (channelCode, agentCode, agentChannelCode) |
String, String, String |
C |
Init class constructor with payment channel code, agent code and agent channel code. • SDK constructor. |
cardNo |
String |
O |
Credit card number. |
expiryMonth |
Integer |
O |
Credit card expiry month. |
expiryYear |
Integer |
O |
Credit card expiry year. |
securityCode |
String |
O |
Credit card security code. |
pin |
String |
O |
Credit card PIN. |
bank |
String |
O |
Credit card issuer bank name. |
country |
String |
O |
Credit card issuer country code. |
tokenize |
Boolean |
O |
Allows customer to tokenize card information. Allows merchant to indicate if the Store Card feature is enabled. • false – No (default) • If true, 2C2P Payment Gateway will return Customer Token on Payment Inquiry |
installmentInterestType |
String |
O |
Installment interest type. Refer to: Installment Interest Type Code |
installmentPeriod |
Integer |
O |
Installment period, in months. |
installmentPayLaterPeriod |
Integer |
O |
Installment pay later period. |
token |
String |
O |
Token from customer token ID or digital payment. |
accountNo |
String |
O |
Customer’s account number. |
qrType |
String |
O |
QR data type. Refer to: QR Type Code |
fxRateId |
String |
O |
Exchange rate ID. Refer to: Exchange Rate Response API |
name |
String |
O |
Customer’s name. |
String |
O |
Customer’s email address. |
|
mobileNo |
String |
O |
Customer’s mobile number. |
userAddress |
UserAddress |
O |
Customer's address. userAddress: User Address Builder: |
paymentExpiry |
String |
O |
Payment expiry. The date/time when the customer must complete the payment. Payments completed after the expiry date/time will be rejected. Date Format : yyyy-MM-dd HH:mm:ss |
customerNote |
String |
O |
Customer's note. |
loyaltyPoints |
Array<LoyaltyPoint> |
O |
Loyalty points redeem list LoyaltyPoints: Refer Loyalty Point |
issuedMonth |
Integer |
O |
Credit card issued month. |
issuedYear |
Integer |
O |
Credit card issued year. |
Do Payment Request
Class TransactionResultRequestBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentToken) |
String |
M |
Init class constructor with payment token ID. • SDK constructor. |
clientId |
String |
O |
Unique client ID. |
locale |
String |
O |
Locale of API response. Important: • if locale is exist, api will response with requested locale. • if clientID exist, api will response with user preference locale. |
with |
PaymentRequest |
O |
Payment request from payment builder Payment request builder: |
User Address For Payment
Class UserAddressBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors () |
C |
Init class constructor. |
|
userBillingAddress |
UserBillingAddress |
O |
Customer's billing address information. userBillingAddress: |
Deep Link Payment (DEEPLINK)
Class DeepLinkPaymentBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) |
PaymentCode |
C |
Init class constructor with payment code. • SDK constructor. |
Constructors (channelCode, agentCode, agentChannelCode) |
String, String, String |
C |
Init class constructor with payment channel code, agent code and agent channel code. • SDK constructor. |
fxRateId |
String |
O |
Exchange rate ID. fxRateId: refer Exchange Rate Response API |
name |
String |
O |
Customer’s name. |
String |
O |
Customer’s email. |
|
mobileNo |
String |
O |
Customer’s mobile number. |
userAddress |
UserAddress |
O |
Customer's address. • userAddress: refer User Address |
paymentExpiry |
String |
O |
Payment expiry. Date/time which the customer allowed to complete payment. Payment completed after the expiry date/time will be rejected. Date Format : yyyy-MM-dd HH:mm:ss |
customerNote |
String |
O |
Customer's note. |
Online Direct Debit Payment (ODD)
Class OnlineDirectDebitBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) |
PaymentCode |
C |
Init class constructor with payment code. • SDK constructor. |
Constructors (channelCode, agentCode, agentChannelCode) |
String, String, String |
C |
Init class constructor with payment channel code, agent code and agent channel code. • SDK constructor. |
fxRateId |
String |
O |
Exchange rate ID. fxRateId: refer Exchange Rate Response API |
name |
String |
O |
Customer’s name. |
String |
O |
Customer’s email. |
|
mobileNo |
String |
O |
Customer’s mobile number. |
userAddress |
UserAddress |
O |
Customer's address. • userAddress: refer User Address |
paymentExpiry |
String |
O |
Payment expiry. Date/time which the customer allowed to complete payment. Payment completed after the expiry date/time will be rejected. Date Format : yyyy-MM-dd HH:mm:ss |
customerNote |
String |
O |
Customer's note. |
tokenize |
Boolean |
O |
Allows customer to tokenize card information. Allows merchant to indicate if the Store Card feature is enabled. • false – No (default) • If true, 2C2P Payment Gateway will return Customer Token on Payment Inquiry |
token |
String |
O |
Token from customer token ID. |
Loyalty Point Payment (GCARD)
Class LoyaltyPointPaymentBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) |
PaymentCode, String |
C |
Init class constructor with payment code. • SDK constructor. |
Constructors (channelCode) |
String, String |
C |
Init class constructor with payment channel code. • SDK constructor. |
cardNo |
String |
O |
Credit card number. |
expiryMonth |
Integer |
O |
Credit card expiry month. |
expiryYear |
Integer |
O |
Credit card expiry year. |
securityCode |
String |
O |
Credit card security code. |
pin |
String |
O |
Credit card pin. |
bank |
String |
O |
Credit card issuer bank name. |
country |
String |
O |
Credit card issuer country code. |
tokenize |
Boolean |
C |
Allows customer to tokenize card information. Allows merchant to indicate if the Store Card feature is enabled. • false – No (default) • If true, 2C2P Payment Gateway will return Customer Token on Payment Inquiry |
installmentInterestType |
String |
C |
Installment interest type. Refer to: Installment Interest Type Code |
installmentPeriod |
Integer |
C |
Installment period in month. |
installmentPayLaterPeriod |
Integer |
C |
Installment pay later period. |
token |
String |
O |
Token from customer token ID. |
fxRateId |
String |
O |
Exchange rate ID. fxRateId: refer Exchange Rate Response API |
name |
String |
O |
Customer’s name. |
String |
O |
Customer’s email. |
|
mobileNo |
String |
O |
Customer’s mobile number. |
userAddress |
UserAddress |
O |
Customer's address. • userAddress: refer User Address |
paymentExpiry |
String |
O |
Payment expiry. Date/time which the customer allowed to complete payment. Payment completed after the expiry date/time will be rejected. Date Format : yyyy-MM-dd HH:mm:ss |
customerNote |
String |
O |
Customer's note. |
loyaltyPoints |
Array<LoyaltyPoint> |
C |
Loyalty points redeem list. loyaltyPoints: refer Loyalty Point |
Digital Currency Payment (DCURRENCY)
Class DigitalCurrencyBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) |
PaymentCode |
C |
Init class constructor with payment code. • SDK constructor. |
Constructors (channelCode) |
String |
C |
Init class constructor with payment channel code. • SDK constructor. |
fxRateId |
String |
O |
Exchange rate ID. fxRateId: refer Exchange Rate Response API |
name |
String |
O |
Customer’s name. |
String |
O |
Customer’s email. |
|
mobileNo |
String |
O |
Customer’s mobile number. |
userAddress |
UserAddress |
O |
Customer's address. • userAddress: refer User Address |
paymentExpiry |
String |
O |
Payment expiry. Date/time which the customer allowed to complete payment. Payment completed after the expiry date/time will be rejected. Date Format : yyyy-MM-dd HH:mm:ss |
customerNote |
String |
O |
Customer's note. |
Payment UI
Class PaymentUIBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (activity) |
Activity |
M |
Init class constructor with Android activity. • SDK constructor. |
Constructors (uiViewController) |
UIViewController |
M |
Init class constructor with iOS UI View controller. • SDK constructor. |
Updated 18 days ago