Standard trip order confirmation
Making payment for a standard trip can be completed using a payment checkout or a wallet checkout method. From the dashboard customers would have two payment options; pay with a wallet, and payment by card.
Payment via wallet checkout
This payment method uses the user's virtual wallet to make payments. Virtual wallets have an available ledger balance. The money value required for the trip is confirmed on the available balance, and deducted from the wallet. If there is no sufficient balance in the available wallet balance, the payment confirmation cannot be processed or completed.
https://dodge.truq.it/booking-service/booking/booking-trip/{trip_id}/walletcheckout/
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Organisation: YOUR_REFERENCE"
-X GET
{
"status": "SUCCESS",
"message": "Trip payment successful. Assigning to driver..."
}
Payment via checkout URL
The checkout payment method allows you to generate a payment checkout URL and share that with your customers. The checkout URL provides a method to make payment by card, bank transfer or via USSD codes. Your customers are able to select one of the following payment channels and confirm payment order for the trip. Payment with checkout URL come with a charge on your customer, and you can find information on the charge calculation here.
You can append a callback URL on the GET request, in order to redirect your customer to your page, after the checkout URL is generated and your customer completes action on the page.
https://dodge.truq.it/booking-service/booking/booking-trip/{trip_id}/checkout/?callback=${callback_url}/
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Organisation: YOUR_REFERENCE"
-X GET
{
"status": "SUCCESS",
"message": "Please click on the checkout url to make payment",
"data": {
"checkout_url": "https://checkout.paystack.com/xxxxxxxxxxxxxxx"
}
}
Last updated