Skip to content

Commit

Permalink
Add support for transfer_data[destination] on PaymentIntent
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-stripe committed Nov 15, 2018
1 parent 685dd67 commit b75f5d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions paymentintent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit b75f5d8

Please sign in to comment.