Online Checkout (Integration to the website checkout)

2.Request Checkout (Confirmation via OTP).

Estimated reading: 1 minute 49 views

 

curl –location –request POST ‘https://staging.flexpay.co.ke/3Api/api/v1/booking/validation/otp’ \
–header ‘Content-Type: application/x-www-form-urlencoded’ \
–header ‘Cookie: __cfduid=dcfacde0dc9b7ac76267a768437a3dbd21613470170’ \
–form ‘otp=6875’ \
–form ‘apiKey=a511864d-6982-3096-998b-e1a39370111c’ \
–form ‘apiSecret=b0g1WnZNbFVzbWFQOE5ZSHVi’ \
–form ‘phoneNumber=254729436198’

The customer is expected to input the ONE TIME PIN sent to the mobile phone via SMS. This will
be authenticated to confirm the settlement to the Merchant Website.

The successful response will be as follows.

{
“status”: 200,
“message”: “Processed Checkout Successfully”,
“data”: {
“customer_name”: “JOSEPHINE”,
“customer_phone_number”: 254729436198,
“available_amount”: “20000”,
“required_topup_amount”: 0,
“receipt_number”: “FROGQHL6330”
}
}

Share this Doc

2.Request Checkout (Confirmation via OTP).

Or copy link

CONTENTS