Migrate from Stripe Elements

If your checkout runs on Stripe Elements today, moving to WHITELABEL changes the checkout layer, not your Stripe account. WHITELABEL connects to Stripe as one provider among the ones you enable, so existing Stripe processing keeps working while you add routing, other providers, and WHITELABEL’s checkout. This page maps each Stripe concept to what you use on WHITELABEL.

Concepts

StripeWHITELABELNotes
PaymentIntentCheckout session plus Create PaymentThe session carries amount, country, and customer and loads the payment methods enabled on your account. The payment is created on your server with the one-time token the SDK returns.
client_secretcheckout_sessionCreated on your server with your private key and passed to the browser. Expires after 2.5 hours in production.
SetupIntentEnrollment, or a payment with vault_on_success: trueA customer session plus mountEnrollment stores the card without charging it. vault_on_success stores it on the first successful payment. Both return a vaulted_token.
PaymentMethod id (pm_...)vaulted_tokenCharge it later by sending payment_method.vaulted_token with stored credentials.
Customer (cus_...)CustomerCreate the customer before the session and pass its id.
capture_method: 'manual'payment_method.detail.card.capture: falseThen capture or cancel the authorization. See Cancel and Capture Flow.
payment_method.card.fingerprintfingerprint on the Payment Method objectStable per card number within your organization. See Card Fingerprint.
Radar rules and block listsRisk ConditionsRules, blocklists, allowlists, and review lists applied on your routes.
Stripe Billing subscriptionsSubscriptions with Smart RetriesIf you keep Stripe Billing, see Process Stripe Billing subscriptions with WHITELABEL.
3D Secure via Stripe3D SecureWHITELABEL runs 3DS on the routed provider and returns sdk_action_required when the shopper must complete a challenge.

Checkout components

Stripe ElementsWHITELABEL Web SDKGuide
Payment ElementSeamless SDKSeamless SDK (Web)
Card ElementLite SDK card component, or Secure Fields when you own the formLite SDK (Web), Secure Fields
Split card fields (cardNumber, cardExpiry, cardCvc)Secure Fields pan, expiration, cvvSecure Fields
Express Checkout ElementLite SDK mountExternalButtons (Apple Pay, Google Pay, PayPal)Lite SDK (Web)
stripe.confirmPaymentwhitelabel.startPayment and your server’s Create Payment callReact and Next.js
stripe.confirmSetupwhitelabel.mountEnrollmentEnrollment (Web)
elements.update({ amount })whitelabel.updateCheckoutSession(newSession)Web Reference
@stripe/react-stripe-js@yuno-payments/sdk-web with the patterns on the React pageReact and Next.js
Appearance APICheckout Builder and SDK stylingCheckout Builder, Styling

Payment flow, side by side

  1. Server creates a PaymentIntent and returns client_secret.
  2. Browser mounts the Payment Element with the secret.
  3. Browser calls stripe.confirmPayment.
  4. Stripe redirects or resolves; your server listens to payment_intent.succeeded.
  1. Server creates a checkout session and returns checkout_session.
  2. Browser mounts the SDK with the session and calls whitelabel.startPayment().
  3. The SDK gives you a one-time token in yunoCreatePayment; your server calls Create Payment with payment_method.token and checkout.session.
  4. If the response has checkout.sdk_action_required: true, the browser calls whitelabel.continuePayment() for 3DS or a redirect. Your server listens to the payment.purchase webhook for the final status.
  1. Server creates a checkout session and returns checkout_session.
  2. Browser mounts the Seamless SDK with the session and calls whitelabel.startPayment().
  3. The SDK creates the payment from the checkout session on your account. Your server listens to the payment.purchase webhook for the final status.
  4. For 3DS or a redirect, the SDK handles the challenge automatically and returns the result in yunoPaymentResult.

One structural difference across both paths: your private key never goes to the browser. The checkout session is created on your server, and for Lite SDK and Secure Fields the payment is also created there.

Webhooks

WHITELABEL sends one event type per object and carries the status inside the payload, so several Stripe events collapse into one WHITELABEL event. See Webhooks and Configure Webhooks.

Stripe eventWHITELABEL eventRead
payment_intent.succeeded, payment_intent.payment_failed, payment_intent.canceledpayment.purchasestatus (SUCCEEDED, DECLINED, PENDING, ERROR) and sub_status
charge.capturedpayment.captureTransaction status
charge.refundedpayment.refundRefund transaction status
charge.dispute.created, charge.dispute.updated, charge.dispute.closedpayment.chargebackstatus (IN_DISPUTE, CHARGEBACK, SUCCEEDED) and sub_status (RECEIVED, PENDING_REVIEW, LOST, APPROVED). See Chargeback management.
setup_intent.succeededenrollment.enrollstatus ENROLLED and the vaulted_token
customer.subscription.*, invoice.paid, invoice.payment_failedsubscription.* (active, past_due, cycle_executed, cancel, and others)Subscription status and cycle result
review.opened, review.closedpayment.fraud_screeningScreening result

Every WHITELABEL webhook carries data.idempotency_key and an x-hmac-signature header; verify it as described in Verify webhook signatures.

Saved cards

Cards saved in Stripe can be brought into WHITELABEL so returning customers do not re-enter them. WHITELABEL supports a provider-to-provider token migration, PGP-encrypted, through the Token Migration Process. Recurring series continue without a new authentication because WHITELABEL stores the network transaction id with each vaulted token; see Stored Credentials.

Migration order

Connect Stripe on WHITELABEL

Add your Stripe account as a connection and put it on a route. Nothing changes for shoppers yet. See Set up a payment connection.

Replace the checkout

Swap the Payment Element for the Seamless SDK, or the Card Element for Lite SDK or Secure Fields, following React and Next.js. Run it on the same Stripe connection first so you can compare approval rates like for like.

Move webhooks

Subscribe your existing handlers to the WHITELABEL events in the table above and switch the status logic to WHITELABEL’s status and sub_status values.

Migrate saved cards

Run the token migration and switch stored-card charges to vaulted_token.

Add providers and routing

Once traffic is stable, add other providers and let Routing and Monitors decide where each payment goes.