diff --git a/paymentintent.go b/paymentintent.go index ba7335766c..103f7f5364 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -46,7 +46,7 @@ type PaymentIntentParams struct { AllowedSourceTypes []*string `form:"allowed_source_types"` Amount *int64 `form:"amount"` ApplicationFee *int64 `form:"application_fee"` - AttemptConfirmation *string `form:"attempt_confirmation"` + AttemptConfirmation *bool `form:"attempt_confirmation"` CaptureMethod *string `form:"capture_method"` Currency *string `form:"currency"` Customer *string `form:"customer"` @@ -142,7 +142,7 @@ type PaymentIntent struct { ReceiptEmail string `json:"receipt_email"` ReturnURL string `json:"return_url"` Shipping ShippingDetails `json:"shipping"` - Source *PaymentSource `json:"source"` + Source *Source `json:"source"` StatementDescriptor string `json:"statement_descriptor"` Status PaymentIntentStatus `json:"status"` TransferData *PaymentIntentTransferData `json:"transfer_data"`