Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lelledaniele committed Mar 30, 2024
1 parent ef88b0f commit 1da563b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion payment/intent/create/intentcreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ func Create(a appamount.Amount, p apppaymentsource.Source, c appcustomer.Custome

if c != nil {
ic.Customer = stripe.String(c.GetGatewayReference())
ic.SavePaymentMethod = stripe.Bool(true)
}

intent, e := paymentintent.New(ic)
Expand Down
2 changes: 1 addition & 1 deletion payment/intent/stripeconv.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func FromStripeToAppIntent(intent stripe.PaymentIntent) Intent {
ps = apppaymentsource.New(intent.PaymentMethod.ID)
}

a, _ := appamount.New(int(intent.Amount), intent.Currency)
a, _ := appamount.New(int(intent.Amount), string(intent.Currency))

var cus appcustomer.Customer
if intent.Customer != nil {
Expand Down

0 comments on commit 1da563b

Please sign in to comment.