From b75f5d849ad23fdd61bd48de741b48e82bf23464 Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Thu, 15 Nov 2018 10:15:25 +0100 Subject: [PATCH] Add support for `transfer_data[destination]` on PaymentIntent --- paymentintent.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/paymentintent.go b/paymentintent.go index 04572b400e..41bcda2788 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -80,7 +80,8 @@ type PaymentIntentConfirmParams struct { // PaymentIntentTransferDataParams is the set of parameters allowed for the transfer hash. type PaymentIntentTransferDataParams struct { - Amount *int64 `form:"amount"` + Amount *int64 `form:"amount"` + Destination *string `form:"destination"` } // PaymentIntentParams is the set of parameters that can be used when handling a payment intent. @@ -137,7 +138,8 @@ type PaymentIntentSourceAction struct { // PaymentIntentTransferData represents the information for the transfer associated with a payment intent. type PaymentIntentTransferData struct { - Amount int64 `json:"amount"` + Amount int64 `json:"amount"` + Destination *Account `json:"destination"` } // PaymentIntent is the resource representing a Stripe payout.