ByPaymentIntentId

class ByPaymentIntentId(val id: String, val clientSecret: String, val amount: Long, val currency: String) : RefundParameters.Builder

Use this builder to create a RefundParameters instance when you have a Payment Intent ID and Client Secret.

Parameters

id

The ID of the Payment Intent to be refunded.

clientSecret

The client secret of the Payment Intent to be refunded.

amount

The amount to be refunded, provided in the currency's smallest unit.

currency

Three-letter ISO currency code. Must be a supported currency.

Constructors

Link copied to clipboard
constructor(id: String, clientSecret: String, amount: Long, currency: String)

Properties

Link copied to clipboard
open override val amount: Long
Link copied to clipboard
open override val clientSecret: String
Link copied to clipboard
open override val currency: String
Link copied to clipboard
open override val id: String
Link copied to clipboard
open override var metadata: Map<String, String>?
Link copied to clipboard
open override var refundApplicationFee: Boolean
Link copied to clipboard
open override var reverseTransfer: Boolean

Functions

Link copied to clipboard

Create a final instance of RefundParameters with the parameters that have been set with this builder.

Link copied to clipboard

Set of key-value pairs that you can attach to an object.

Link copied to clipboard

Connect only: Nullable boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded.

Link copied to clipboard

Connect only: Nullable boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount).