UNPKG

@rnw-community/react-native-payments

Version:

Accept Payments with Apple Pay and Android Pay using the Payment Request API.

38 lines (25 loc) 1.16 kB
# `SupportedNetworkEnum` ## What & why The card networks a `methodData` entry accepts. Reach for it when populating `methodData.data.supportedNetworks` on either platform. ## How Accepts the standard networks (`Visa`, `Mastercard`, `Amex`, …) plus several Apple Pay introduced after the oldest supported iOS version, rejected below their minimum: | Member | Minimum iOS version | | --- | --- | | `Girocard` | iOS 14 | | `Mir` | iOS 14.5 — **deprecated**, see Pitfalls | | `Dankort` | iOS 15.1 | | `Bancontact` | iOS 16 | ## Example ```ts import { SupportedNetworkEnum } from '@rnw-community/react-native-payments'; const supportedNetworks = [SupportedNetworkEnum.Visa, SupportedNetworkEnum.Mastercard]; ``` ## Pitfalls `SupportedNetworkEnum.Mir` is **deprecated**. Apple delisted the network over the sanctions against the issuing banks, so it resolves on iOS 14.5+ and keeps an existing integration building, but no Mir card can be provisioned into Apple Pay anymore. It is kept functional instead of being removed so upgrading does not break a build; do not add it to a new integration. ## References - [platforms/ios.md](../platforms/ios.md)