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
20 lines (18 loc) • 463 B
text/typescript
export class CreditCardConfig {
public saveCard: boolean;
public manual: boolean;
/**
* @param {boolean} saveCard - An option to save (tokenize) the card after a successful payment.
* @param {boolean} manual - An option to enable the manual auth and capture flow.
*/
constructor({
saveCard = false,
manual = false,
}: {
saveCard?: boolean;
manual?: boolean;
}) {
this.saveCard = saveCard;
this.manual = manual;
}
}