PaymentIntent

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.

Constructors

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

Types

Link copied to clipboard
data class PaymentAttempt(val id: String?, val amount: BigDecimal?, val currency: String? = null, val paymentMethod: PaymentMethod, val capturedAmount: BigDecimal?, val refundedAmount: BigDecimal?, val createdAt: Date?, val updatedAt: Date?, val authenticationData: PaymentIntent.PaymentAttemptAuthData?) : AirwallexModel, Parcelable
Link copied to clipboard

Properties

Link copied to clipboard

Payment amount. This is the order amount you would like to charge your customer

Link copied to clipboard

Available payment method types

Link copied to clipboard

Reason for cancelling the payment intent. Only present when the payment intent was successfully cancelled, i.e. status is CANCELLED

Link copied to clipboard
val cancelledAt: Date? = null

Last time at which this payment intent was cancelled. Only present when the payment intent was successfully cancelled, i.e. status is CANCELLED

Link copied to clipboard

Amount that captured from this payment intent

Link copied to clipboard
val clientSecret: String? = null

Client secret for browser or app

Link copied to clipboard
val createdAt: Date? = null

Time at which this payment intent was created

Link copied to clipboard

Amount currency

Link copied to clipboard
val customerId: String? = null

The customer who is paying for this payment intent

Link copied to clipboard

PaymentConsents of the Customer if Customer ID is provided

Link copied to clipboard

Payment methods of the customer if customer ID is provided

Link copied to clipboard
val descriptor: String? = null

Descriptor that will be displayed to the customer

Link copied to clipboard
val id: String

Unique identifier for the payment intent

Link copied to clipboard

Latest payment attempt that was created under the payment intent

Link copied to clipboard
val merchantOrderId: String? = null

The order ID created in merchant's order system that corresponds to this payment intent

Link copied to clipboard
val metadata: Map<String, Any?>? = null

A set of key-value pairs that you can attach to this customer

Link copied to clipboard
val nextAction: NextAction? = null

Next action for the payment intent

Link copied to clipboard
val order: PurchaseOrder? = null

The purchase order info

Link copied to clipboard
val requestId: String? = null

Unique request ID specified by the merchant in the last operation

Link copied to clipboard

The status for the payment intent

Link copied to clipboard
val updatedAt: Date? = null

Last time at which this payment intent was updated or operated on

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)