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
21 lines (20 loc) • 504 B
JavaScript
;
import { PaymentType } from "../../../payment_type.js";
export class SamsungPayRequestSource {
type = PaymentType.samsungPay;
constructor({
samsungPayToken,
manualPayment = false
}) {
this.samsungPayToken = samsungPayToken;
this.manualPayment = manualPayment ? 'true' : 'false';
}
toJson() {
return {
type: this.type,
token: this.samsungPayToken,
manual: this.manualPayment
};
}
}
//# sourceMappingURL=samsung_pay_request_source.js.map