@stripe/stripe-react-native
Version:
Stripe SDK for React Native
36 lines (35 loc) • 1.24 kB
TypeScript
import { AndroidConfig, ConfigPlugin } from '@expo/config-plugins';
declare type StripePluginProps = {
/**
* The iOS merchant ID used for enabling Apple Pay.
* Without this, the error "Missing merchant identifier" will be thrown on iOS.
*/
merchantIdentifier: string | string[];
enableGooglePay: boolean;
};
/**
* Adds the following to the entitlements:
*
* <key>com.apple.developer.in-app-payments</key>
* <array>
* <string>[MERCHANT_IDENTIFIER]</string>
* </array>
*/
export declare function setApplePayEntitlement(merchantIdentifiers: string | string[], entitlements: Record<string, any>): Record<string, any>;
/**
* Add a blank Swift file to the Xcode project for Swift compatibility.
*/
export declare const withNoopSwiftFile: ConfigPlugin;
/**
* Adds the following to AndroidManifest.xml:
*
* <application>
* ...
* <meta-data
* android:name="com.google.android.gms.wallet.api.enabled"
* android:value="true|false" />
* </application>
*/
export declare function setGooglePayMetaData(enabled: boolean, modResults: AndroidConfig.Manifest.AndroidManifest): AndroidConfig.Manifest.AndroidManifest;
declare const _default: ConfigPlugin<StripePluginProps>;
export default _default;