Skip to main content

Shopee Pay

Body Request

NoNameTypeMandatoryMin LengthMax LengthDescription
1 orderObjectM112Detail of Order
2 customerObjectM18Detail of Customer
3 urlObjectM14Detail of Url
4 billingObjectO11Detail of Billing
5 shippingObjectO14Detail of Shipping
6 metaObjectO11Detail of MetaData
7 cardObjectO17Detail of Card
8 recurringObjectO111Detail of Recurring
9 sourceOfFundsObjectM111Detail of SourceOfFunds
10 deviceObjectO17Detail of Device

Sample Request

{
"customer": {
"email": "hajar.finnet@gmail.com",
"firstName": "Hajar",
"lastName": "Ismail",
"mobilePhone": "+6281286288844"
},
"order": {
"id": "1680677921021",
"amount": "1000",

"description": "Testing"
},
"url": {
"callbackUrl": "https://sandbox.finpay.co.id/simdev/finpay/result/resultsuccess.php",
"successUrl": "https://sandbox.finpay.co.id/simdev/finpay/result/resultsuccess.php",
"failUrl": "https://sandbox.finpay.co.id/simdev/finpay/result/resultfailed.php"
},
"sourceOfFunds": {
"type": "shopeepay"
}
}

Body Response

NoNameTypeMandatoryMin LengthMax LengthDescription
1 responseCodeEnumM17Response Code
2 responseMessageStringM1500Response Message
3 paymentCodeStringC130Payment Code
4 redirecturlStringC1320Redirect URL
5 expiryLinkStringC119Expiry Link
6 processingTimeNumberC120Processing Time
7 appurlStringC1320App URL
8 imageurlStringC1320Image URL
9 accountListArrayC14Account List

Sample Response

{
"responseCode": "2000000",
"responseMessage": "Success",
"redirecturl": "https://wsa.uat.wallet.airpay.co.id/universal-link/wallet/pay?deep_and_deferred=1&token=dFhkbmR1bTBIamhWkwTDbkj1rqyZ2bpUAzcbk2DTFNsV-45fcNQOPN0",
"appurl": "shopeeid://main?apprl=%2Frn%2FTRANSFER_PAGE%3Fnavigate_url%3Dhttps%253A%252F%252Fwsa.uat.wallet.airpay.co.id%252Fwallet%252Fpay%253Ftoken%253DdFhkbmR1bTBIamhWkwTDbkj1rqyZ2bpUAzcbk2DTFNsV-45fcNQOPN0",
"imageurl": "",
"expiryLink": "2023-04-06 13:58:41",
"paymentCode": "",
"processingTime": 1.5723111629486084
}