Developer forum

Forum » Ecommerce - Standard features » Stripe Error
Bruno
Reply

Hi Guys,

In the project that I'm working now we are getting an error when using Stripe as payment method, where the error says invalid positive integer and happens when we insert a discount (voucher or gift card) that is bigger than the order total.

I've recorded a screencast showing this issue: http://screencast.com/t/Q1BuMcivKIz

We are using version 8.8.1.12.

BR, Bruno


Replies

 
Nicolai Høeg Pedersen
Reply

Just remove the option to allow negative orders, see dump.

Capture.PNG
 
Bruno
Reply

I don't have that option checked.
 

Capture.PNG
 
Nicolai Høeg Pedersen
Reply

Is your ordertotal negative?

 
Bruno
Reply

My ordertotal is 0. It's the ordertotal value passed to stripe?

 
Nicolai Høeg Pedersen
Reply

Yes, that should be the ordertotal - just checked. You can also use your dev toolbar in the browser to see if you can see something weird. It starts the Stripe dialog fine enough in your video with the amount 0.

Have you tried looking at this one: https://www.jotform.com/answers/258110-Stripe-Invalid-Positive-Integer-Error

 

 
Bruno
Reply

I've checked the link that you sent to me, and their problem is related with subscription that's not our case.

I've checked the dev toolbar and everything seems perfect, I'm getting a token too.

The problem is after submit the form with credit card info.

 
Nicolai Høeg Pedersen
Reply

Well, can't do more by guessing, need a URL or you can create a case so we can take a look.

 
Bruno
Reply

I've sent the URL to your email.

Thanks, Bruno

 
Nicolai Høeg Pedersen
Reply

Hi Bruno

I've sent the issue to the service desk

BR Nicolai

 

You must be logged in to post in the forum