react-native-moyasar-sdk
Version:
Official React Native Moyasar SDK - Integrate Credit Cards, Apple Pay, Samsung Pay, and STC Pay with simple interfaces for a seamless payment experience in your React Native app
26 lines (25 loc) • 770 B
JavaScript
;
/**
Required configuration to setup Apple Pay.
*/
export class ApplePayConfig {
/**
* Constructs a new ApplePayConfig instance with the provided settings.
* @param merchantId - The merchant id configured in the Moyasar Dashboard and Xcode.
* @param label - The store name to be displayed in the Apple Pay payment session.
* @param manual - An option to enable the manual auth and capture.
* @param saveCard - An option to save (tokenize) the card after a successful payment.
*/
constructor({
merchantId,
label,
manual = false,
saveCard = false
}) {
this.merchantId = merchantId;
this.label = label;
this.manual = manual;
this.saveCard = saveCard;
}
}
//# sourceMappingURL=apple_pay_config.js.map