UNPKG

@sahabaplus/moyasar

Version:

A comprehensive TypeScript SDK for integrating with the Moyasar payment gateway

49 lines 2.78 kB
/** * @description Indicates the payment status. If the payment is in the initiated status, then an action must be taken (e.g. 3DS challenge) in order to complete the payment. The status authorized is used when a scheme payment is made with manual: true option which will cause the system to authorize the payment only without capturing it. The merchant must capture the payment within time it will be voided automatically by the issuer. * @note Please note that when an issuer voids the payment, the status will be kept authorized and WILL NOT BE updated by the system. * @values `initiated`, `paid`, `authorized`, `failed`, `refunded`, `captured`, `voided`, `verified` * @see https://docs.moyasar.com/api/payments/01-create-payment#responses */ export declare const PaymentStatus: { /** * @description If the payment is initiated then you need to complete the payment transaction by completing the payment challenge found in `Payment.source.transaction_url` depending on the payment source type. * @see https://docs.moyasar.com/api/payments/01-create-payment#responses */ readonly INITIATED: "initiated"; readonly PAID: "paid"; /** * @description The status authorized is used when a scheme payment is made with manual: true option which will cause the system to authorize the payment only without capturing it. The merchant must capture the payment within time it will be voided automatically by the issuer. Please note that when an issuer voids the payment, the status will be kept authorized and WILL NOT BE updated by the system. * @see https://docs.moyasar.com/api/payments/01-create-payment#responses */ readonly AUTHORIZED: "authorized"; readonly FAILED: "failed"; readonly REFUNDED: "refunded"; readonly CAPTURED: "captured"; readonly VOIDED: "voided"; readonly VERIFIED: "verified"; }; export type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus]; export declare const PaymentSource: { readonly CREDITCARD: "creditcard"; readonly APPLEPAY: "applepay"; readonly GOOGLEPAY: "googlepay"; readonly SAMSUNGPAY: "samsungpay"; readonly STCPAY: "stcpay"; readonly TOKEN: "token"; }; export type PaymentSource = (typeof PaymentSource)[keyof typeof PaymentSource]; export declare const CardScheme: { readonly MADA: "mada"; readonly VISA: "visa"; readonly MASTER: "master"; readonly AMEX: "amex"; }; export type CardScheme = (typeof CardScheme)[keyof typeof CardScheme]; export declare const CardType: { readonly DEBIT: "debit"; readonly CREDIT: "credit"; readonly CHARGE_CARD: "charge_card"; readonly UNSPECIFIED: "unspecified"; }; export type CardType = (typeof CardType)[keyof typeof CardType]; //# sourceMappingURL=enums.d.ts.map