Skip to main content
POST

Installment Pay Link

Intro

Creates a payment for one installment that the plan’s customer completes in the browser — for when the saved card was declined, needs 3-D Secure, or the customer wants to pay early.

Context

The response is the same payment object as Installment Checkout, for the installment’s amount. When it’s paid, the installment is marked paid on the plan (installment.paid), exactly as if it had been charged.

Hows

POST /installment-plans/{plan_id}/installments/{position}/pay-link
integer
required
The installment plan.
integer
required
The installment to pay, from 1.
string
stripe, paystack or flutterwave. Defaults to the gateway for the product’s currency.

Response

Send the customer to checkout_url for Khaime’s hosted checkout, or confirm client_secret yourself (or redirect to payment_url), as at checkout.

Errors

Whys

Off-session charges fail when a bank insists on authenticating the customer. A pay link puts the customer back in the flow so the bank can challenge them, without starting a new plan.

Why nots

  • Creating a pay link doesn’t email the customer; send it through your own channel.