PayMayaCheckoutResult
Sealed class representing the result of a checkout payment operation.PayMayaCheckoutResult.Success
Returned when the checkout payment completes successfully.Checkout identifier for the successful transaction.
PayMayaCheckoutResult.Cancel
Returned when the user cancels the checkout payment.Checkout identifier if available, or null if the cancellation occurred before a checkout ID was generated.
PayMayaCheckoutResult.Failure
Returned when the checkout payment fails.Checkout identifier if available, or null if the failure occurred before a checkout ID was generated.
Exception containing detailed information about the failure reason.
SinglePaymentResult
Sealed class representing the result of a single payment operation via PayWithPayMaya.SinglePaymentResult.Success
Returned when the single payment completes successfully.Payment identifier for the successful transaction.
SinglePaymentResult.Cancel
Returned when the user cancels the single payment.Payment identifier if available, or null if the cancellation occurred before a payment ID was generated.
SinglePaymentResult.Failure
Returned when the single payment fails.Payment identifier if available, or null if the failure occurred before a payment ID was generated.
Exception containing detailed information about the failure reason.
CreateWalletLinkResult
Sealed class representing the result of creating a wallet link.CreateWalletLinkResult.Success
Returned when the wallet link is created successfully.Wallet link identifier for the successfully created link.
CreateWalletLinkResult.Cancel
Returned when the user cancels the wallet link creation.Wallet link identifier if available, or null if the cancellation occurred before a link ID was generated.
CreateWalletLinkResult.Failure
Returned when the wallet link creation fails.Wallet link identifier if available, or null if the failure occurred before a link ID was generated.
Exception containing detailed information about the failure reason.
PayMayaVaultResult
Sealed class representing the result of a card tokenization process.PayMayaVaultResult.Success
Returned when card tokenization completes successfully.The unique identifier for the payment token.
The state of the payment token.
Timestamp when the token was created.
Timestamp when the token was last updated.
The card issuer (e.g., “VISA”, “MASTERCARD”).
PayMayaVaultResult.Cancel
Returned when the user cancels the card tokenization process. This is an object with no additional properties.CheckPaymentStatusResult
Sealed class representing the result of checking a payment’s status.CheckPaymentStatusResult.Success
Returned when the payment status check succeeds.The current status of the payment. See PaymentStatus for possible values.
CheckPaymentStatusResult.Cancel
Returned when the payment status check is cancelled. This is an object with no additional properties.CheckPaymentStatusResult.Failure
Returned when the payment status check fails.Exception containing detailed information about the failure reason.
PaymentStatus
Enum representing the various states a payment can be in.| Status | Description |
|---|---|
PENDING_TOKEN | Token is pending |
PENDING_PAYMENT | Initial payment status of the checkout transaction |
PAYMENT_EXPIRED | Payment transaction not executed and expiration time has been reached |
FOR_AUTHENTICATION | Payment transaction is waiting for authentication |
AUTHENTICATING | Payment transaction is currently authenticating |
AUTH_SUCCESS | Authentication successfully executed (e.g., 3DS authentication for card transactions) |
AUTH_FAILED | Authentication of payment has failed |
PAYMENT_PROCESSING | Payment is processing |
PAYMENT_SUCCESS | Payment is successfully processed |
PAYMENT_FAILED | Payment is not successfully processed |
VOIDED | Successfully processed payment has been reversed (usually before settlement cut-off for card-based payments) |
REFUNDED | Successfully processed payment has been fully or partially reversed (usually after settlement cut-off for card-based payments) |