Travel & withheld delivery
For merchants who hand over what was bought only once it is fully paid — a flight or hotel booking that is issued but not released, for example. This page is the whole lifecycle, with PHP (CodeIgniter 3 / Laravel) code.
Your agreement with FinFort says your goods are withheld until fully paid. That makes your plans low risk, and it decides what happens if a customer stops paying: the plan is forfeited rather than chased (see below).
What you promise#
- Issue, but do not release. Book and ticket with your airline/GDS as soon as FinFort pays you, but show the customer
only your own booking reference — never the airline/GDS reference or e-ticket — until the plan is
COMPLETED. - On default, void and return. If FinFort forfeits the plan, cancel or void the booking and return the advance
(
merchantOweson the webhook) to FinFort's OVA. - Only digital payments, all through FinFort. Never take a repayment in cash or on your own MoMo account.
The lifecycle#
| Step | You | FinFort |
|---|---|---|
| 1. Price | quotes->create and show every window |
— |
| 2. Start | transactions->create (with the customer's NIN) |
Verifies the ID, asks the customer for the upfront payment on their phone |
| 3. Paid out | On downpayment.settled: book and ticket, keep it withheld |
Pays you the financed balance (OVA) |
| 4. Repay | Optional: installments->charge / show paymentLinkUrl |
Reminds the customer, collects on due dates |
| 5. Done | On transaction.completed: release the ticket, then transactions->close |
— |
| Default | On transaction.forfeited: void the booking, return merchantOwes |
Refunds the customer what they paid less the agreed forfeit |
// 2. Start the plan (CodeIgniter 3: $this->finfort_bnpl->client; Laravel: inject \Finfort\Bnpl\Client)
$plan = $bnpl->transactions->create([
'merchantReference' => $booking->reference, // your booking reference: retries never charge twice
'principalAmount' => $booking->totalUgx,
'currency' => 'UGX',
'paymentWindowDays' => $chosenDays,
'upfrontAmount' => $chosenUpfront, // at least the quote's minimumUpfront
'merchantEligible' => $fare->refundable, // FinFort finances refundable fares only
'termsAccepted' => true,
'customer' => [
'externalRef' => $user->id, 'fullName' => $user->nameOnId, 'phone' => $user->momo,
'nationalId' => $user->nin, 'creditCheckConsent' => $user->agreedToCreditCheck,
],
]);// 3–5 and default: your webhook handler
switch ($event['eventType']) {
case 'downpayment.settled': issueTicketWithheld($event['data']['merchantReference']); break;
case 'transaction.completed': releaseTicket($event['data']['merchantReference']);
$bnpl->transactions->close($event['data']['transactionId']); break;
case 'transaction.forfeited': voidBooking($event['data']['merchantReference']);
recordAmountOwedToFinfort($event['data']['merchantOwes']); break;
}Things to plan for#
- Departure and cancellation deadlines. Only offer windows whose last installment falls before the fare's ticketing
or refund deadline (and a hotel's free-cancellation date). Pass
merchantEligible: falseotherwise. - Lateness. FinFort either ends a plan 3 days after a missed installment, or charges late fees and ends it only after
the whole window (FinFort's setting; you get
installment.late_fee_charged). Either way, don't release anything early. - Refunds. A cancellation after FinFort has paid you is filed for a FinFort manager (
202,refund.pending_approval); the customer's plan keeps running until it is approved (transaction.refunded) or rejected (refund.rejected). - Test the whole path in the sandbox, including a default:
$bnpl->sandbox->advance($plan['id'], 40)moves the plan forty days ahead and runs the overdue rules.
