Before merchant redirects customer to Leanpay checkout page, merchant’s server must obtain unique token from Leanpay server. Received token will be used as parameter for redirect HTTP request.
Received token will be used as parameter for redirect HTTP request.
{- "vendorApiKey": "a6e83e59-ab14-42e5-af24-1e46968e5f06",
- "vendorTransactionId": 1234567890,
- "amount": 200,
- "successUrl": "/vendor-mock",
- "errorUrl": "/vendor-mock",
- "vendorPhoneNumber": 722000000,
- "vendorFirstName": "George",
- "vendorLastName": "Popescu",
- "vendorAddress": "Aleea Trandafirilor 233",
- "vendorZip": 1000,
- "vendorCity": "Bucuresti",
- "language": "ro",
- "vendorProductCode": "7208f613-f346-42be-a334-cef66ff4e44b",
- "CartItems": {
- "name": "Vendor product 01",
- "sku": "sku",
- "price": 200,
- "qty": 4,
- "lpProdCode": 4
}
}
{- "token": "375e39ad91434c019e2b6ef0ce17b221"
}