It works for me but I use stripe, but he register to me the payment twice
Hey, welcome,
I had to split off your topic to a new one.
Normally we don’t reply to an ancient post here…
Could you explain what you mean?
- You’ve setup stripe
- Customer pays
- And then the amount ends up in Stripe twice?
- Or The Payment ends up in InvoicePlane twice?
Yes I setup stripe and when they pay by IDEAL in stripe, I got the money in stripe but in the program I have two payments and the invoice is payed twice with the same id payment.
As a result I have a minus amount and when I cancel one payment the result is 0 but the inovice sounds not payed.
I hope it was clear
1 Like
Can you do some debugging?
application/modules/guest/controllers/gateways/Stripe.php
This code was probably called twice:
$this->mdl_payments->save(null, [
'invoice_id' => $invoice_id,
'payment_date' => date('Y-m-d'),
'payment_amount' => $session->amount_total / 100,
'payment_method_id' => get_setting('gateway_stripe_payment_method'),
'payment_note' => 'payment intent ID: ' . $session->payment_intent,
]);