Stripe error Amount must be at least 50 cents


Uncaught StripeErrorInvalidRequest: Amount must be at least 50 cents

Stripe expects amounts in cents/pence, so if you pass amount as amount = 10
This will be considered as 10 pence instead of 10 USD.
So when Stripe gets pence lower than 50 it generates that error.

How to send USD instead of pence

You need to convert your amount to USD by multiplying it by 100

$amount = $amount * 100;
Advertisements

2 thoughts on “Stripe error Amount must be at least 50 cents

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s