Package-level declarations

Types

Link copied to clipboard
abstract class AbstractPaymentIntentParams(val paymentIntentId: String, val clientSecret: String)
Link copied to clipboard
abstract class AbstractPaymentMethodParams(val customerId: String, val clientSecret: String)
Link copied to clipboard

Address information.

Link copied to clipboard
data class AirwallexError(val code: String? = null, val source: String? = null, val message: String? = null) : AirwallexModel, Parcelable, Serializable

Airwallex uses conventional HTTP response codes to indicate the success or failure of an API request. Typically a status code in the 2xx range indicates success, status codes in the 4xx range indicate an error that has been triggered due to the information provided (for example; a parameter does not meet the validation requirements or was not provided), and status codes in the 5xx range indicate an error with our servers.

Link copied to clipboard
interface AirwallexModel
Link copied to clipboard
data class AirwallexPaymentRequest(val additionalInfo: Map<String, String>? = null, val flow: AirwallexPaymentRequestFlow? = null, val osType: String? = null) : AirwallexModel, AirwallexRequestModel, Parcelable

Request for Bank

Link copied to clipboard
Link copied to clipboard
data class AvailablePaymentMethodType(val name: String, val displayName: String? = null, val transactionMode: TransactionMode? = null, val flows: List<AirwallexPaymentRequestFlow>? = null, val transactionCurrencies: List<String>? = null, val countryCodes: List<String>? = null, val active: Boolean? = null, val resources: AvailablePaymentMethodTypeResource? = null, val cardSchemes: List<CardScheme>? = null) : AirwallexModel, Parcelable
Link copied to clipboard
data class AvailablePaymentMethodTypeResource(val hasSchema: Boolean? = null, val logos: LogoResources? = null) : AirwallexModel, Parcelable
Link copied to clipboard
data class Bank(val name: String, val displayName: String, val resources: BankResources?) : AirwallexModel, Parcelable

Bank information.

Link copied to clipboard

Resources of bank

Link copied to clipboard

Response for retrieve available payment method types

Link copied to clipboard

Billing information.

Link copied to clipboard
data class CardScheme(val name: String) : Parcelable
Link copied to clipboard
data class ClientSecret(val value: String, val expiredTime: Date) : AirwallexModel, Parcelable
Link copied to clipboard

The params that used for confirm PaymentIntent

Link copied to clipboard
data class ContinuePaymentIntentParams(val paymentIntentId: String, val clientSecret: String, val type: PaymentIntentContinueType, val threeDSecure: ThreeDSecure? = null, val device: Device? = null, val useDcc: Boolean? = null) : AbstractPaymentIntentParams

The params that used for continue PaymentIntent

Link copied to clipboard
data class CreatePaymentConsentParams(val clientSecret: String, val customerId: String, val paymentMethodId: String? = null, val googlePay: PaymentMethod.GooglePay? = null, val paymentMethodType: String, val nextTriggeredBy: PaymentConsent.NextTriggeredBy, val merchantTriggerReason: PaymentConsent.MerchantTriggerReason? = PaymentConsent.MerchantTriggerReason.UNSCHEDULED, val requiresCvc: Boolean? = null)

The params that used for create PaymentConsent

Link copied to clipboard
data class CreatePaymentMethodParams(val clientSecret: String, val customerId: String, val card: PaymentMethod.Card, val billing: Billing?) : AbstractPaymentMethodParams

The params that used for create PaymentMethod

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class DisablePaymentConsentParams(val paymentConsentId: String, val clientSecret: String)

The params that used for disable PaymentConsent

Link copied to clipboard
data class DynamicSchema(val transactionMode: TransactionMode? = null, val fields: List<DynamicSchemaField>? = null) : AirwallexModel, Parcelable
Link copied to clipboard
data class DynamicSchemaField(val name: String, val displayName: String, val uiType: DynamicSchemaFieldUIType?, val type: DynamicSchemaFieldType?, val hidden: Boolean, val candidates: List<DynamicSchemaFieldCandidate>?, val validations: DynamicSchemaFieldValidation?) : AirwallexModel, Parcelable
Link copied to clipboard

sdk information

Link copied to clipboard
data class NextAction(val stage: NextAction.NextActionStage? = null, val type: NextAction.NextActionType?, val data: Map<String, Any?>?, val dcc: NextAction.DccData?, val url: String?, val fallbackUrl: String?, val method: String?, val packageName: String?) : AirwallexModel, Parcelable
Link copied to clipboard
Link copied to clipboard
sealed class Options : Parcelable
Link copied to clipboard
interface Page<T> : AirwallexModel
Link copied to clipboard
data class PaymentConsent(val id: String? = null, val requestId: String? = null, val customerId: String? = null, var paymentMethod: PaymentMethod? = null, val initialPaymentIntentId: String? = null, val nextTriggeredBy: PaymentConsent.NextTriggeredBy? = null, val merchantTriggerReason: PaymentConsent.MerchantTriggerReason? = null, val requiresCvc: Boolean = false, val metadata: Map<String, Any?>? = null, val status: PaymentConsent.PaymentConsentStatus? = null, val createdAt: Date? = null, val updatedAt: Date? = null, val nextAction: NextAction? = null, val clientSecret: String? = null) : AirwallexModel, Parcelable
Link copied to clipboard

Params for disable a payment consent

Link copied to clipboard

Reference to an existing PaymentConsent

Link copied to clipboard
data class PaymentIntent(val id: String, val requestId: String? = null, val amount: BigDecimal, val currency: String, val merchantOrderId: String? = null, val order: PurchaseOrder? = null, val customerId: String? = null, val descriptor: String? = null, val metadata: Map<String, Any?>? = null, val status: PaymentIntentStatus? = null, val capturedAmount: BigDecimal? = null, val latestPaymentAttempt: PaymentIntent.PaymentAttempt? = null, val availablePaymentMethodTypes: List<PaymentMethodType>? = null, val customerPaymentMethods: List<PaymentMethod>? = null, val customerPaymentConsents: List<PaymentConsent>? = null, val clientSecret: String? = null, val nextAction: NextAction? = null, val createdAt: Date? = null, val updatedAt: Date? = null, val cancelledAt: Date? = null, val cancellationReason: String? = null) : AirwallexModel, Parcelable

A PaymentIntent guides you through the process of collecting a payment from your customer. It tracks a payment when your customer first checks out, through to when payment is successfully paid by your customer. A PaymentIntent transitions through a number of states throughout the customer's payment journey.

Link copied to clipboard
Link copied to clipboard
data class PaymentIntentContinueRequest(val requestId: String? = null, val type: PaymentIntentContinueType? = null, val threeDSecure: ThreeDSecure? = null, val device: Device? = null, val useDcc: Boolean? = null) : AirwallexRequestModel, Parcelable

The request params to confirm PaymentIntent

Link copied to clipboard
Link copied to clipboard

A PaymentMethod represents the funding source that is used by your customer when making a payment. You may create and add multiple payment methods to a customer as saved payment methods to help streamline your customers' checkout experience.

Link copied to clipboard

Params for create a payment method

Link copied to clipboard

Options for payment method

Link copied to clipboard

Reference for payment method

Link copied to clipboard
class PaymentMethodRequest(val id: String? = null, val type: String, val paymentRequest: AirwallexPaymentRequest? = null, val card: PaymentMethod.Card? = null, val googlePay: PaymentMethod.GooglePay? = null, val billing: Billing? = null) : AirwallexRequestModel, Parcelable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class PurchaseOrder(val products: List<PhysicalProduct>? = null, val shipping: Shipping? = null, val type: String? = null) : AirwallexModel, AirwallexRequestModel, Parcelable

Purchase order information

Link copied to clipboard

The params that used for retrieve PaymentMethod

Link copied to clipboard

The params that used for retrieve PaymentMethodTypeInfo

Link copied to clipboard
data class RetrievePaymentIntentParams(val paymentIntentId: String, val clientSecret: String) : AbstractPaymentIntentParams

The params that used for retrieve PaymentIntent

Link copied to clipboard

The params that used for retrieve PaymentMethodTypeInfo

Link copied to clipboard

Shipping information

Link copied to clipboard
Link copied to clipboard
data class ThreeDSecureLookup(val transactionId: String?, val payload: String?, val acsUrl: String?, val version: String) : Parcelable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class VerifyPaymentConsentParams(val clientSecret: String, val paymentConsentId: String, val amount: BigDecimal? = null, val currency: String? = null, val cvc: String? = null, val paymentMethodType: String, val returnUrl: String? = null)

The params that used for verify PaymentConsent

Link copied to clipboard
data class WeChat(val appId: String?, val partnerId: String?, val prepayId: String?, val package: String?, val nonceStr: String?, val timestamp: String?, val sign: String?) : AirwallexModel, Parcelable

WeChat Pay Payments

Functions

Link copied to clipboard