Payment Request
Init PGW SDK
Class PGWSDKParamsBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (apiEnvironment) | APIEnvironment | M | PGW SDK API endpoint environment • SDK constructor |
clientId | String | O | Unique client ID
|
locale | String | O | Locale of API response
|
log | Boolean | O | PGW SDK log information. |
Global/Local Card Token Payment (GCARD / LCARD)
Class CardTokenPaymentBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode, token) | PaymentCode, String | C | Init class constructor with payment code and card token ID. |
Constructors (channelCode, token) | String, String | C | Init class constructor with payment channel code and card token ID. |
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 |
installmentInterestType | String | C | Installment interest type |
installmentPeriod | Integer | C | Installment period, in months |
fxRateId | String | O | Exchange rate ID |
String | O | Customer’s email address | |
mobileNo | String | O | Customer’s mobile number |
userAddress | UserAddress | O | Customer's address |
paymentExpiry | String | O | Payment expiry |
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 |
Constructors (channelCode, cardNo) | String, String | C | Init class constructor with payment channel code and 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 |
installmentInterestType | String | C | Installment interest type |
installmentPeriod | Integer | C | Installment period, in months |
fxRateId | String | O | Exchange rate ID |
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 |
paymentExpiry | String | O | Payment expiry |
Internet Banking (IMBANK)
Class InternetBankingBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) | PaymentCode | C | Init class constructor with payment code |
Constructors (channelCode, agentCode, agentChannelCode) | String, String, String | C | Init class constructor with payment channel code, agent code and agent channel code |
fxRateId | String | O | Exchange rate ID |
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 |
paymentExpiry | String | O | Payment expiry |
Pay At Counter (COUNTER)
Class PayAtCounterBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) | PaymentCode | C | Init class constructor with payment code |
Constructors (channelCode, agentCode, agentChannelCode) | String, String, String | C | Init class constructor with payment channel code, agent code and agent channel code |
fxRateId | String | O | Exchange rate ID |
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 |
paymentExpiry | String | O | Payment expiry. |
Self Service Machine (SSM)
Class SelfServiceMachineBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) | PaymentCode | C | Init class constructor with payment code |
Constructors (channelCode, agentCode, agentChannelCode) | String, String, String | C | Init class constructor with payment channel code, agent code and agent channel code |
fxRateId | String | O | Exchange rate ID |
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 |
paymentExpiry | String | O | Payment expiry. The date/time when the customer must complete the payment. |
Web Payment (WEBPAY)
Class WebPaymentBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) | PaymentCode | C | Init class constructor with payment code |
Constructors (channelCode, agentCode, agentChannelCode) | String, String, String | C | Init class constructor with payment channel code, agent code and agent channel code |
fxRateId | String | O | Exchange rate ID |
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 |
paymentExpiry | String | O | Payment expiry. The date/time when the customer must complete the payment. |
Digital Payment (DPAY)
Class DigitalPaymentBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) | PaymentCode | C | Init class constructor with payment code |
Constructors (channelCode) | String | C | Init class constructor with payment channel code |
accountNo | String | O | Customer’s account number |
token | String | O | Digital payment token |
fxRateId | String | O | Exchange rate ID |
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 |
paymentExpiry | String | O | Payment expiry. The date/time when the customer must complete the payment. |
QR Payment (QR)
Class QRPaymentBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) | PaymentCode | C | Init class constructor with payment code |
Constructors (channelCode) | String | C | Init class constructor with payment channel code |
type | String | O | QR data type |
fxRateId | String | O | Exchange rate ID |
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 |
paymentExpiry | String | O | Payment expiry. The date/time when the customer must complete the payment. |
Buy Now Pay Later Payment (BNPL)
Class BuyNowPayLaterPaymentBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors (paymentCode) | PaymentCode | C | Init class constructor with payment code |
Constructors (channelCode) | String | C | Init class constructor with payment channel code, agent code and agent channel code |
fxRateId | String | O | Exchange rate ID |
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 |
paymentExpiry | String | O | Payment expiry. The date/time when the customer must complete the payment. |
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 merchant to indicate if the Store Card feature is enabled • false – No (default) |
installmentInterestType | String | O | Installment interest type Refer to: Installment Interest Type Code |
installmentPeriod | Integer | O | Installment period, in months |
token | String | O | Token from card 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 |
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.
|
with | PaymentRequest | O | Payment request from payment builder |
User Address For Payment
Class UserAddressBuilder |
Parameter | Data Type | Mandatory | Description |
---|---|---|---|
Constructors () | C | Init class constructor | |
userBillingAddress | UserBillingAddress | O | Customer's billing address informationuserBillingAddress: |
Updated 4 days ago