🚚
truQ Services
  • Getting Started
  • Environment
  • Status Codes
  • Booking Management
    • Trip Booking
      • Getting a Quote
      • Booking an open trip
      • Booking a standard trip
      • Booking a merchant trip
    • Payment and Order Confirmation
      • Standard trip order confirmation
      • Business trip order confirmation
  • Parameter Guide
    • Trip Types
    • Vehicle Categories
    • Source and Destination
Powered by GitBook
On this page
  • Payment via wallet checkout
  • Payment via checkout URL
  1. Booking Management
  2. Payment and Order Confirmation

Standard trip order confirmation

Last updated 1 year ago

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.

Endpoint
https://dodge.truq.it/booking-service/booking/booking-trip/{trip_id}/walletcheckout/
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Organisation: YOUR_REFERENCE"
-X GET
Response Body
{
    "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 .

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.

Endpoint
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
Response Body
{
    "status": "SUCCESS",
    "message": "Please click on the checkout url to make payment",
    "data": {
        "checkout_url": "https://checkout.paystack.com/xxxxxxxxxxxxxxx"
    }
}
here