Enable Klarna and PayPal on the Banxa buy path#6057
Merged
Conversation
peachbits
requested changes
Jul 10, 2026
c254821 to
9eb4943
Compare
Contributor
Author
9eb4943 to
a0c8ac7
Compare
peachbits
approved these changes
Jul 14, 2026
a0c8ac7 to
ddcbfab
Compare
Banxa already exposes Klarna (KLARNACKO, SEK) and PayPal (PRIMERPAYPAL, EUR) via its payment-methods API, but the GUI dropped both because their payment-type codes were not recognized. Add a klarna FiatPaymentType, map the two Banxa codes, and allow both on the Banxa buy path so the options surface in the ramp flow. PayPal reuses the existing logo and string; Klarna falls back to the provider icon until a dedicated asset is added.
ddcbfab to
97f01c4
Compare
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.

Description
Enables Klarna and PayPal as Buy payment options on the Banxa ramp path.
Banxa already exposes both methods through its payment-methods API (verified live:
KLARNACKOfor Klarna in SEK andPRIMERPAYPALfor PayPal in EUR, bothACTIVE/FIAT_TO_CRYPTO), but the GUI dropped them because their payment-type codes were not recognized by the Banxa ramp plugin's cleaner. This adds the two codes, maps them to Edge payment types, and allows them on the buy path so they surface in the ramp option list.Changes (all in the live
src/plugins/rampsarchitecture, which powers the current Buy flow):klarnato theFiatPaymentTypeunion (paypalalready existed).KLARNACKOandPRIMERPAYPAL, map them toklarna/paypal, and setklarna: true/paypal: trueunderallowedPaymentTypes.buy.klarnacases to the buy and sell settlement-range switches and aklarnaentry to the payment-type icon map (falls back to the provider icon until a dedicated Klarna asset is added by design).Asana: https://app.asana.com/0/1215088146871429/1215175793390820
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
none
Requirements
If you have made any visual changes to the GUI. Make sure you have:
Testing notes: tsc, jest (436 tests), and verify-repo all pass. The in-app Banxa Buy ramp scene could not be driven on the iOS simulator because
RampCreateScenehits a reproducible debug-build RN FabricRCTTextLayoutManagercrash on render (unrelated to this data-only change). Behavior was instead verified directly against the mechanism the UI routes through: the live Banxa payment-methods response was run through the committedtypeMapandallowedPaymentTypes.buy, confirmingKLARNACKO->klarnaandPRIMERPAYPAL->paypalare now recognized and allowed on the buy path. A follow-up is noted for design to supply an official Klarna logo asset.Note
Medium Risk
Touches fiat ramp payment routing and buy-method allowlists; incorrect mapping could hide or mislabel payment options, but scope is limited to Banxa buy configuration and presentation.
Overview
Banxa buy now surfaces Klarna and PayPal by teaching the ramp plugin to accept Banxa’s
KLARNACKOandPRIMERPAYPALcodes, map them to Edgeklarna/paypaltypes, and allow both underallowedPaymentTypes.buy(they were previously dropped during payment-method cleaning).Supporting plumbing adds
klarnato the shared fiat payment-type union, buy/sell settlement-range handling, display strings, theme Klarna logo wiring, and unit tests. CHANGELOG notes the new buy options; RampCreateScene gets atestIDon the fiat dropdown for automation.Reviewed by Cursor Bugbot for commit 97f01c4. Bugbot is set up for automated code reviews on this repo. Configure here.