UNPKG

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

27 lines (26 loc) 710 B
"use strict"; import { PaymentType } from "../../../payment_type.js"; export class SamsungPayPaymentResponseSource { type = PaymentType.samsungPay; constructor({ number, gatewayId, referenceNumber, message }) { this.number = number; this.gatewayId = gatewayId; this.referenceNumber = referenceNumber; this.message = message; } static fromJson(json) { // TODO: Should we support more fields? Also for Apple Pay return new SamsungPayPaymentResponseSource({ number: json.number, gatewayId: json.gateway_id, referenceNumber: json.reference_number, message: json.message }); } } //# sourceMappingURL=samsung_pay_response_source.js.map