Repository navigation
feat(flutterwave): on-page checkout with Flutterwave Inline - #100
Closed
alexasomba wants to merge 5 commits into
Closed
alexasomba wants to merge 5 commits into
alexasomba wants to merge 5 commits into
Conversation
…able Real test-mode run (24 Nov 2026): GET /v3/refunds answers 400 unauthorized on a key that can create refunds. Degrade the duplicate check to a logged warning for that case, log a failed disbursement, and add fixtures from the real verify and refund responses.
This was referenced Nov 24, 2026
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the Flutterwave set described in #97. Item 3. Builds on #98 (the package) and #99 (the public-key credential) — review those first; this branch contains their commits until they merge.
What
Flutterwave Inline as the store's on-page checkout, the same shape as Stripe Elements and Paystack's Popup:
checkoutStyles: ["hosted", "on_page"]and apublicKeycredential (FLWPUBK_TEST-…/FLWPUBK-…), saved by core assettings:flutterwavePublicKey.initCheckoutreturnson_pagewith the browser data:{ publicKey, txRef, amount, currency, customerEmail, customerName?, customerPhone?, paymentOptions?, orderDraftId }. No server-side/paymentscall is made; Inline creates the transaction in the browser../checkout-cliententry registerswindow.DashCommerceCheckoutClients.flutterwave. It loadshttps://checkout.flutterwave.com/v3.jsonly when the customer presses Pay, then callsFlutterwaveCheckoutwith the public key,tx_ref, amount in major units and the customer.callback→onFinished();onclose→onClosed(). A singlesettledguard stopsonclosefrom firing after a successful callback.Deliberate choices
redirect_url. Flutterwave givesredirect_urlprecedence overcallback, so passing both would navigate away before the callback could move the customer. The form'sreturnUrlis used instead.Evidence — real Flutterwave test mode (24 Nov 2026)
./checkout-clienton a local pageDashCommerceCheckoutClients.flutterwave; no script until Paycheckout.flutterwave.com/v3.jsloaded; Inline modal opened oncheckout-v3.flutterwave.comcallbackfired and the page showedfinished(transaction10633614)getPaymentStatuson the resultsucceeded,150000minor units, KES115045); the disburse-status warning fired as designedTests
on-page.test.tscovering script loading on demand, the exact Inline options, callback/onclose ordering, load failure and retry, a throw from Inline, missing client data, and registration beside other providers.create-sessionreturnson_page, the webhook still creates the order, and a missing public key is refused.tsc --noEmitclean; Biome clean on the touched files; build emits bothindexandcheckout-cliententries.Review notes
clientpayload is public by design; it contains no secret and no amount the webhook does not re-check.