Payment Service
This API allows you to retrieve a list of payment services by payment channel. This enables extra controls of what payment services that you want to display on your application.
Authentication
LeanX uses Auth Token to authenticate in each request's header.
Auth Token can be retrieved in your portal dashboard under API page.
Request Header
Getting Payment Service List
Note that for B2C payment please use payment_model_reference_id
= 1
while B2B is payment_model_reference_id
= 2
B2B payment service list are only available for payment type WEB_PAYMENT.
Jump to Getting B2B Payment Service List here
HTTP Method: POST
Request Body
Attributes
payment_type*
String
Payment service type
WEB_PAYMENT
= Web Payment (FPX)
GLOBAL_CARD_PAYMENT
= Card
DIGITAL_PAYMENT
= E-Wallet
BUY_NOW_PAY_LATER
= Buy Now Pay Later
SWITCH_PAYPAL
= PayPal
GLOBAL_CARD_PAYMENT_STRIPE
= Stripe
payment_model_reference_id*
String
The web payment (FPX) channel
1
= B2C
2
= B2B
If using other payment type than WEB_PAYMENT
, please use
1
= Default
payment_status*
String
Payment service channel status
active
or inactive
Response
Getting Payment Service List (FPX B2B)
HTTP Method: POST
Request Body
Attributes
payment_type*
String
Payment service type
WEB_PAYMENT
= Web Payment (FPX)
payment_model_reference_id*
String
The web payment (FPX) channel
2
= B2B
payment_status*
String
Payment service channel status
active
or inactive
Response
Last updated