Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for transfer_data[destination] on PaymentIntent
Browse files Browse the repository at this point in the history
remi-stripe committed Nov 15, 2018
1 parent 685dd67 commit 3d363b4
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
@@ -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.

0 comments on commit 3d363b4

Please sign in to comment.