RefundParameters

The RefundParameters object allows you to set the options you need to create a refund for an existing charge. For more information, see:

https://stripe.com/docs/api/refunds/create

To create an instance of this class, use the provided Builder.

Use of this SDK is subject to the Stripe Terminal Terms: https://stripe.com/terminal/legal

Types

Link copied to clipboard
sealed interface Builder
Link copied to clipboard
class ByChargeId(val id: String, val amount: Long, val currency: String) : RefundParameters.Builder

Use this builder to create a RefundParameters instance when you have a Charge ID.

Link copied to clipboard
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.

Properties

Link copied to clipboard
val amount: Long
Link copied to clipboard
val chargeId: String?
Link copied to clipboard
val clientSecret: String?
Link copied to clipboard
val currency: String
Link copied to clipboard
@Transient
val metadata: Map<String, String>?
Link copied to clipboard
val paymentIntentId: String?
Link copied to clipboard
Link copied to clipboard
val reverseTransfer: Boolean