concretecms-community-store / community_store_stripe

Stripe payment add-on for Community Store for concrete5
MIT License
7 stars 2 forks source link

Is this a Token Lifetime Error? #12

Open madesimplemedia opened 6 years ago

madesimplemedia commented 6 years ago

Hi

I have a site that's been taking payments ok until one of their customers got this error today: Stripe error. Status is:400 Type is:invalid_request_error Code is:parameter_invalid_integer Param is:amount Message is:Invalid positive integer

Could this be due to the token expiring? I believe it expires after ten minutes?

mnakalay commented 6 years ago

are they trying to use it for a free product with an amount of $0.00? Or is the price less than $0.50?

madesimplemedia commented 6 years ago

The price is much higher than that.

mnakalay commented 6 years ago

Normally Stripe throws out that error only when the amount charged is inferior to their minimum allowed or negative. Maybe a discount is applied that is returning an amount that Stripe is rejecting, maybe something else is happening in the background. It would be interesting if you could add a few Log calls to save the amount being sent to Stripe so we could quickly find out what is happening.