@lyracom/react-native-sdk-payment-module
Version:
React Native Sdk Payment Module
35 lines (34 loc) • 1.66 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ProcessOptions = exports.InitializeOptions = void 0;
exports.getFormTokenVersion = getFormTokenVersion;
exports.initialize = initialize;
exports.process = process;
var _NativeSdkPaymentModule = _interopRequireDefault(require("./NativeSdkPaymentModule.js"));
var _reactNative = require("react-native");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function getFormTokenVersion() {
return _NativeSdkPaymentModule.default.getFormTokenVersion();
}
function initialize(publicKey, options) {
return _NativeSdkPaymentModule.default.initialize(publicKey, options);
}
function process(formToken, options) {
return _NativeSdkPaymentModule.default.process(formToken, options);
}
const InitializeOptions = exports.InitializeOptions = {
apiServerName: 'apiServerName',
// Mandatory
applePayMerchantId: _reactNative.Platform.OS === 'android' ? '' : 'applePayMerchantId',
// iOS only
applePayMerchantName: _reactNative.Platform.OS === 'android' ? '' : 'applePayMerchantName' // iOS only
};
const ProcessOptions = exports.ProcessOptions = {
customPayButtonLabel: _reactNative.Platform.OS === 'android' ? 'CustomPayButtonLabel' : 'customPayButtonLabel',
customHeaderLabel: _reactNative.Platform.OS === 'android' ? 'CustomHeaderLabel' : 'customHeaderLabel',
customPopupLabel: _reactNative.Platform.OS === 'android' ? 'CustomPopupLabel' : 'customPopupLabel',
paymentMethodType: _reactNative.Platform.OS === 'android' ? '' : 'paymentMethodType' // Not yet supported on Android, iOS only
};
//# sourceMappingURL=index.js.map
;