getCheckoutCurrencySelectorElementId (checkout/createCheckout.ts)

stripe-react-native · src/checkout/createCheckout.ts · typescript · MIT
payments

Provides utilities for creating and managing Stripe Checkout controllers and elements in React Native.

// Source: https://github.com/stripe/stripe-react-native | License: MIT | Copyright 2020 stripe
// Provided via justclaw.it.com; keep this notice with the code.
import type {
  Checkout,
  CheckoutController,
  CheckoutCurrencySelectorElement,
  CheckoutPaymentElement,
} from '../types/Checkout';
import type { StripeError } from '../types/Errors';
import { runServerUpdate } from './runServerUpdate';
import NativeStripeSdk from '../specs/NativeStripeSdkModule';
import {
  addCheckoutControllerListener,
  addCheckoutControllerSelectionListener,
  createCheckoutBridgeId,
} from './CheckoutControllerEventEmitter';

const paymentElementIds = new WeakMap<CheckoutPaymentElement, string>();
const currencySelectorElementIds = new WeakMap<
  CheckoutCurrencySelectorElement,
  string
>();

/** Resolv

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key