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
24 lines (23 loc) • 574 B
JavaScript
;
import { PaymentType } from "../../../payment_type.js";
export class ApplePayRequestSource {
type = PaymentType.applePay;
constructor({
applePayToken,
manualPayment = false,
saveCard = false
}) {
this.applePayToken = applePayToken;
this.manualPayment = manualPayment ? 'true' : 'false';
this.saveCard = saveCard;
}
toJson() {
return {
type: this.type,
token: this.applePayToken,
manual: this.manualPayment,
save_card: this.saveCard
};
}
}
//# sourceMappingURL=apple_pay_request_source.js.map