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
19 lines (15 loc) • 442 B
text/typescript
import { PaymentType } from '../../../payment_type';
import type { PaymentRequestSource } from '../payment_request_source';
export class StcPayRequestSource implements PaymentRequestSource {
type: PaymentType = PaymentType.stcPay;
mobile: string;
constructor({ mobile }: { mobile: string }) {
this.mobile = mobile;
}
toJson(): Record<string, any> {
return {
type: this.type,
mobile: this.mobile,
};
}
}