Jump to content
  • 0

Stripe Payment Gateway Error


Question

Posted

Hello,

 

I am getting the error message below when I order using stripe. This system worked fine for a few days and now I get this message. The price is $3.98 with a 50% discount coupon being used. 

 

Invalid integer: 397.5

The payment gateway returned an error when processing the request.

6 answers to this question

Recommended Posts

  • 0
Posted

You'll have to give more information. Where does this message appear in the context of Blesta? What were you doing that caused it?

 

The error seems pretty clear, however: "Invalid integer: 397.5". 397.5 is not an integer, but rather a float value. It's possible an integer was set, but the 50% coupon discount halved it into a float value and passed it to Stripe, but we need more info to find out where in the system this is happening.

  • 0
Posted

This is the error message I receive back from stripe to blesta. It hits stripe and it fails and returns this error message. 

That sounds correct since if I do not half the total it works correctly. 

  • 0
Posted

This actually looks like a coupon math issue to me, from what you've said. 50% off of $3.98 shouldn't be $397.50, obviously, but rather $1.99. However, not sure why Stripe considered 397.5 invalid. I could be misunderstanding, more details would probably help.

  • 0
Posted

I'm using Stripe and have never come across this issue, but I've never tried a 50% coupon

 

This actually looks like a coupon math issue to me, from what you've said. 50% off of $3.98 shouldn't be $397.50, obviously, but rather $1.99. However, not sure why Stripe considered 397.5 invalid. I could be misunderstanding, more details would probably help.

Because Stripe requires an integer. https://stripe.com/docs/api#plan_object

 

And as stated 397.5 is not an integer.

  • 0
Posted

I had a problem with that as well, Stripe updated their API,  I think you have to upgrade to it, and put in the new key that you generate.  It put me under a lot of pressure this afternoon when I had a customer call to give me their credit card over the phone so I could apply it to their balance.  Got the Stripe error and I had to use an offline processor which made me look bad.  (Square, who is my backup processor.)

 

Once I put the new API key in, I fixed the issue.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...