moyasar library

Moyasar Flutter SDK helps you accept payments quickly and securely.

Classes

ApiError
A 500 error in the API.
ApplePay
The widget that shows the Apple Pay button.
ApplePayConfig
Required configuration to setup Apple Pay.
ApplePayPaymentRequestSource
Required data to setup an Apple Pay payment.
ApplePayPaymentResponseSource
The response source from Moyasar API for the Apple Pay payment.
AuthError
A failure in authing the request. Double check your publishableApiKey in the PaymentConfig.
CardFormModel
Credit Card data.
CardPaymentRequestSource
Required data to setup a Credit Card payment.
CardPaymentResponseSource
The response source from Moyasar API for the Credit Card payment.
CreditCard
The widget that shows the Credit Card form and manages the 3DS step.
CreditCardConfig
Required configuration to extend the Credit Card payment feature.
Localization
The Credit Card form supports the English (default) and the Arabic language.
Moyasar
Payment service.
NetworkError
A network error.
OtpComponent
OtpRequestSource
PaymentCanceledError
A failure due to canceling the Apple Pay session.
PaymentConfig
Used by Moyasar API along with any of the supported sources.
PaymentRequest
Required data to setup a payment.
PaymentResponse
Moyasar API response for processing a payment.
PaymentSplit
Represents a payment split for dividing payment amount among recipients.
SamsungPay
A widget that displays the Samsung Pay button.
SamsungPayConfig
Required configuration to setup Samsung Pay.
SamsungPayEligibility
High-level helper API to proactively check Samsung Pay readiness.
SamsungPayEligibilityResult
Detailed outcome for Samsung Pay readiness checks.
SamsungPayPaymentRequestSource
Required data to setup a Samsung Pay payment.
SamsungPayPaymentResponseSource
The response source from Moyasar API for the Samsung Pay payment.
STCPay
STCPaymentComponent
Deprecated: Use STCPay instead. STCPaymentComponent will be removed in the next major version.
StcRequestSource
StcResponseSource
TimeoutError
A request timeout error.
UnprocessableTokenError
A failure specific to Apple Pay token being unprocessable. Usually happens when you test using a simulator. Retry using a real physical device.
UnspecifiedError
An unspecefied error.
ValidationError
A validation error in any of the params.

Enums

ApplePayButtonStyle
The button styles supported on Apple Pay.
ApplePayButtonType
The types of button supported on Apple Pay.
CardCompany
Types of Credit Card companies.
PaymentNetwork
Supported Networks: PaymentNetwork.amex, PaymentNetwork.visa, PaymentNetwork.mada, PaymentNetwork.masterCard, PaymentNetwork.unionPay
PaymentStatus
SamsungPayEligibilityReason