stripe-react-native-apple-pay
Version:
React Native wrapper around Stripe Apple Pay
36 lines • 1.27 kB
TypeScript
import { AndroidConfig, type ConfigPlugin } from '@expo/config-plugins';
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;
//# sourceMappingURL=withStripe.d.ts.map