Laravel Cashier invoicePrice amount seems too big #42718
Unanswered
sts-ryan-holton
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm using the latest version of Laravel Cashier and am making simple charges with invoices. My Stripe account is based on GBP money format and I've set up 3 products in my Stripe test account each with their own one-time amount and price id. One for £10, one for £20 and another for £50.
When I make a single charge, I'm first getting the price of the item based on the
stripe_id
since I can't hard-code these values, so for example, theunit_amount
returned to me for my £10 product is1000
, but when creating the charge, I'm charged for £10,000.If I manually hard-code my
invoicePrice
second arg to 10 then I'm charged £100, what's going on here?Beta Was this translation helpful? Give feedback.
All reactions