0
When i enter a payment through stripe, it goes through successfully (so it seems) but then I get the following error message when the page auto refreshes:
Invalid positive integer
Payment process not completed
Do I need to enter an ENDPOINT URL in Stripe?
Invalid positive integer
Payment process not completed
Do I need to enter an ENDPOINT URL in Stripe?
Responses (17)
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0Just an update for me...I am using the latest stripe plugin v1.1.0 ... the problem is that even though the button on the stripe code says "Pay $X.YZ" the amount passed to the stripe script is zero. This is why I am getting the error anyway.
On the plugin file /plugins/invoices/payment_stripe/payment_strip.php near line 101 the line reads 'amount' => $payment->amount * 100, // *100 because...
The issue is the array object $payment does not have an item "amount" ... the correct variable is payment_amount ...
So I changed the code in the stripe plugin as follows:
try {
$charge = \Stripe\Charge::create(array(
'customer' => $customer->id,
'amount' => $payment->amount * 100, // *100 because stripe amount only accepts cents.
'currency' => $this->params->get( 'currency', 'USD' )
));
To this:
try {
$charge = \Stripe\Charge::create(array(
'customer' => $customer->id,
'amount' => $payment->payment_amount * 100, // *100 because stripe amount only accepts cents.
'currency' => $this->params->get( 'currency', 'USD' )
)); -
Accepted Answer
-
Accepted Answer
0Want to say that the modifications you made to my script worked out perfectly!
Just FYI: the update on your server still isn't working properly as of today, 6 February. I reverted back to the plugin that you edited on my server. I've included the zip of what was done on my server (I made some changes to the form.php file in the tmpl folder to match that payment process to the site) if it will help out in any way. -
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »