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

38 lines (37 loc) 924 B
"use strict"; import { PaymentType } from "../../../payment_type.js"; export class CreditCardResponseSource { type = PaymentType.creditCard; constructor({ company, name, number, gatewayId, transactionUrl, referenceNumber, token, message }) { this.network = company; this.name = name; this.number = number; this.gatewayId = gatewayId; this.transactionUrl = transactionUrl; this.referenceNumber = referenceNumber; this.token = token; this.message = message; } static fromJson(json) { return new CreditCardResponseSource({ company: json.company, name: json.name, number: json.number, gatewayId: json.gateway_id, transactionUrl: json.transaction_url, referenceNumber: json.reference_number, token: json.token, message: json.message }); } } //# sourceMappingURL=credit_card_response_source.js.map