CreatePaymentConsentParams

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

Constructors

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

Types

Link copied to clipboard
class Builder(clientSecret: String, customerId: String, paymentMethodType: String, nextTriggeredBy: PaymentConsent.NextTriggeredBy) : ObjectBuilder<CreatePaymentConsentParams>
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

googlePay of the PaymentMethod attached for subsequent payments. Must be set when type is GooglePay.

Link copied to clipboard

Only applicable when next_triggered_by is merchant. One of scheduled, unscheduled. Default: unscheduled

Link copied to clipboard

The party to trigger subsequent payments. Can be one of merchant, customer. If type of payment_method is card, both merchant and customer is supported. Otherwise, only merchant is supported

Link copied to clipboard
val paymentMethodId: String? = null

ID of the PaymentMethod attached for subsequent payments. Must be set when type is card.

Link copied to clipboard

Type of the PaymentMethod

Link copied to clipboard
val requiresCvc: Boolean? = null

Only applicable when next_triggered_by is customer. If false, the customer must provide cvc for subsequent payments with this PaymentConsent. Default: false