#DaanVDH
1 messages · Page 1 of 1 (latest)
Hi, taking a look here
Hello, that's okay 🙂
From looking at the request id, it looks like you're passing an parameter that is not in the API: https://stripe.com/docs/api/refunds/create. Does it work if you do not pass this paramater?
Yeah, It does. I just found it weird because it's in the official Go SDK
newest version
Let me look at that document
type RefundParams struct {
Params `form:"*"`
// A positive integer representing how much to refund.
Amount *int64 `form:"amount"`
Charge *string `form:"charge"`
// Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Currency *string `form:"currency"`
// Customer whose customer balance to refund from.
Customer *string `form:"customer"`
// Address to send refund email, use customer email if not specified
InstructionsEmail *string `form:"instructions_email"` <----- HERE
// Origin of the refund
Origin *string `form:"origin"`
PaymentIntent *string `form:"payment_intent"`
Reason *string `form:"reason"`
RefundApplicationFee *bool `form:"refund_application_fee"`
ReverseTransfer *bool `form:"reverse_transfer"`
}
@light basin the instructions_email parameter is specific for what we call "out of scheme refunds" when you accepted a bank transfer payment and need to collect bank details to send the money back.
It's irrelevant to a card payment for example. So in your case you can't use that parameter at all.
Ahhh I see, that clears it up. Thanks!