Builder

class Builder(paymentIntentId: String, clientSecret: String)

Builder for ConfirmRefundParameters.

Parameters

paymentIntentId

The ID of the PaymentIntent to refund.

clientSecret

The client secret for the PaymentIntent.

Constructors

Link copied to clipboard
constructor(paymentIntentId: String, clientSecret: String)

Functions

Link copied to clipboard
Link copied to clipboard

Sets the amount to refund, in the currency's smallest unit.

Link copied to clipboard
fun setInstructionsEmail(instructionsEmail: String?): ConfirmRefundParameters.Builder

Sets the email address to which refund instructions are sent.

Link copied to clipboard
fun setMetadata(metadata: Map<String, String>?): ConfirmRefundParameters.Builder

Sets the metadata to attach to the Refund.

Link copied to clipboard

Sets the reason for the refund.

Link copied to clipboard
fun setRefundApplicationFee(refundApplicationFee: Boolean): ConfirmRefundParameters.Builder

Sets whether to refund the application fee when refunding this payment.

Link copied to clipboard

Sets whether to reverse the transfer when refunding this payment.