Confirm the Payment Total
Preview collection fees and the total a customer will pay before initiating an IVB payment or requesting customer approval.
Existing transaction requests remain compatible. amount remains the principal in baseFiat. Existing businesses continue to pass Ivorypay collection fees to customers unless an owner or admin changes the business setting. No quote field is required for existing clients or already admitted payments.
Who pays the Ivorypay fee
In Settings > Payment Settings, use Pass Ivorypay transaction fees to customers:
Enabled: Ivorypay's collection fee is added to the principal.
Disabled: the customer pays the principal and Ivorypay's fee is deducted from the merchant's proceeds.
The setting applies to new fiat and crypto collections in both Test and Live mode, including API payments, payment links, donation links and recurring collections. Saved payment instructions retain their original amounts and fee policy. A quote obtained before a policy change must be refreshed before a new payment is admitted.
The optional businessFee is a separate charge supplied by the merchant. It still increases the customer total and is included in merchant proceeds. Omit it or set it to zero when the customer should pay only the principal. Provider/MNO costs are separate internal costs; this setting does not add them to the customer amount or control charges an operator independently levies on its customer.
For a principal of 2,000 XOF, an Ivorypay fee of 54 XOF and no businessFee:
Enabled
2,054 XOF
54 XOF
2,000 XOF
Disabled
2,000 XOF
54 XOF
1,946 XOF
The same arithmetic applies in the settlement token. These amounts illustrate the fee policy, not a fixed tariff or exchange rate. Existing merchant-specific rates still determine the fee.
Merchant API
Before requesting a debit, use authenticated GET /api/v1/exchange-rates/convert-merchant-checkout with the same secret key/environment as initiation:
amount,fiatCurrency,token: the transaction's principal,baseFiatandcrypto.amountType=FIAT,source=BUSINESS_API_FIAT_COLLECTION.context=LIVEandblockchain=BSC_MAINNET(orTESTandBSC_TESTNET). Ownership and environment are taken from authentication.quoteReference: the UUID that will be submitted asreference.phoneNumber: the same customer's number for mobile money or the Capitec Pay phone flow. For the optional Capitec verified-ID flow, use the POST body below.businessFeeInFiat: the same optionalbusinessFeeas initiation.paymentBrand,paymentBank,mobileMoneyNetwork: the same optional method selections as initiation.
Capitec Pay quotes with a private identifier
Use POST /api/v1/exchange-rates/convert-merchant-checkout with your secret key when the collection uses verifiedIdNumber, capitecIdNumber or capitecAccountNumber. Repeat the explicit capitecIdentifierType and the selected value at initiation. This calls the same quote calculation as GET while keeping the identity out of URLs. The field is optional; phone-only integrations can keep their existing GET requests. Only verifiedIdNumber asserts prior merchant verification. capitecIdNumber is the normal customer-entered ID option; capitecAccountNumber is a Capitec consumer account. None is a TIN.
Replace the placeholder with the actual verified 13-digit ID. Submit the same identity, reference, payment method and approved amounts when creating the payment. The quote binds that identity privately without including the raw ID in its token claims. Changing the ID, switching to phone authorization or changing the debit invalidates approval. The quote itself does not verify identity, initiate payment or permit a retry. Keep the ID and quote out of logs.
The existing conversion response is preserved. Supplying quoteReference adds data.paymentQuote:
Amounts are examples, not fixed tariffs. Display the returned principal and totalAmount before the customer confirms. Show the Ivorypay fee as an additional customer charge only when feeBearer is CUSTOMER; MERCHANT means it is absorbed. Do not reconstruct fees in the frontend. Then pass collectionQuote to the existing POST /api/v1/transactions with type: FIAT, mode: API and the same payment inputs. Keep amount: 2000 in this example, not 2054. The token expires after five minutes and attests that your checkout obtained approval for the displayed total; it does not capture bank credentials or replace bank authorization.
Conversion and initiation responses also expose collectionFeeBearer. Transaction details and payment webhooks retain collectionAmountSnapshot, including the admitted feeBearer, payer requestedAmount, platform fee and customer-funded merchantNetAmount. Snapshot amounts are in its currency; assetType identifies fiat or crypto. Older records without a fee-bearer field use CUSTOMER. Platform-funded promotional subsidies, when applicable, are recorded separately in the campaign snapshot.
The merchant collection-rate endpoints return the customer total in totalAmountInFiat/totalAmountInCrypto and net proceeds in amountInFiatLessFee/amountInCryptoLessFee, alongside collectionFeeBearer.
Split shares are allocated from merchant net proceeds. Refunds for absorbed-fee collections may return the full amount actually paid by the customer, subject to the merchant having enough available funds for the refund and its applicable fees. Absorbing a collection fee does not make that fee refundable.
An expired or changed quote returns HTTP 400 with COLLECTION_QUOTE_EXPIRED or COLLECTION_QUOTE_CHANGED and retrySafe: true before any debit request. Obtain a fresh quote and customer confirmation. Other failures and uncertain responses are not permission to resubmit: retain the same reference and use status/recovery. Never automatically retry an insufficient-balance rejection; let the customer check the wallet and explicitly start a new payment.
The API cannot establish what a merchant displayed without the merchant adopting this optional flow. Requests without an approval token remain supported and use the saved business fee preference when a new payment is admitted.
For an account quote, replace the ID field with capitecAccountNumber and select ACCOUNTNUMBER. For a customer-entered ID quote, use capitecIdNumber with IDNUMBER, without verifiedIdNumber. Phone-only requests may retain GET; private identifiers and explicit selectors are POST-body fields. Public hosted checkout uses its existing POST quote/initiate endpoints with the same customer-entered fields, never the merchant verification assertion.
Hosted checkout Capitec selection
The existing public checkout posts its selected proxy to /api/v1/fiat-checkout/quote in the body. This example is for a customer-entered ID on an existing payment link; replace originId with that link's identifier:
The checkout then posts the same selected fields with the returned collectionQuote to /api/v1/fiat-checkout/initiate. To choose an account, use ACCOUNTNUMBER and capitecAccountNumber instead of capitecIdNumber. For a phone, use phoneNumber with CELLPHONE, or omit the selector for the legacy phone default. paymentMethod: "EFT" selects the existing bank collection route; paymentBrand distinguishes Capitec Pay from EFT bank authorization.
These public fields select a payment identifier only. The public routes cannot assert verifiedIdNumber or override a provider account requirement. Once admitted, recover the existing reference/action instead of changing the identifier or repeating initiation after an uncertain response. Private identifiers are not returned in quote claims, status, receipts or webhooks.
Last updated