VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: emedina on March 08, 2017, 13:11:03 PM

Title: re-confimed orders
Post by: emedina on March 08, 2017, 13:11:03 PM
Hello, I've detected one issue:
When a payment is done or an order is confirmed, the client goes to confirmed order template. Especially on mobiles, the client closes the browser. When client launches browser again, the browser refreshes the confirmed order page, the form is sent again. If the order was payed with PayPal, the client cancels payment.
In Spain we process credit cards with redSys. When the form is submitted again, redsys deny the payment with error code "duplicate order number" and return a cancel response that Virtuemart handle it, and cancel payment.
When the payment response comes in the url, plugging handle the response again changing orders sometimes  from "confirmed" to "pending", other times from "confirmed" to "cancelled".

Anyone has experimented this?

Thanks

Title: Re: re-confimed orders
Post by: emedina on March 08, 2017, 13:20:59 PM
Sorry, no form is re posted. The payment response is re procesed!!!.

Thanks

Title: Re: re-confimed orders
Post by: GJC Web Design on March 08, 2017, 17:49:34 PM
the redsys payment plugin should have logic filtering of the IPN response so this doesn't happen..

if already confirmed ignore the IPN
Title: Re: re-confimed orders
Post by: lindapowers on March 08, 2017, 20:38:48 PM
Are you using SSL?

Redsys won't work well in the response with free SSL like "let's encrypt" that dont work by dedicated IP. We had to redirect the plugin response to http in .htaccess

We had the issues you mentioned when we enabled SSL but the problem is not from the plugin but the system of Sermepa which doesn't like SSL without dedicated IP.

You should contact joomlaempresa.es they are really helpfull solving issues, a part from the mentioned it has been working fine for us for years.
Title: Re: re-confimed orders
Post by: emedina on March 13, 2017, 10:18:42 AM
Hi, thank's everyone

I'm using SSL, but i think this is not the problem.
I have this problem in sites with ssl and non ssl sites.
Specially with paypal responses. Client is redirected to paypal payment process, and user cancel the second payment and plugin cancel the whole order.
Title: Re: re-confimed orders
Post by: AH on March 13, 2017, 16:16:12 PM
Vm version is required
Title: Re: re-confimed orders
Post by: emedina on March 14, 2017, 10:09:46 AM
3.0.18

Thanks
Title: Re: re-confimed orders
Post by: emedina on April 10, 2017, 10:11:18 AM
Hello.

I reopen this post because the error is still present.
In other site, joomla 3.6 and vm 3.0.18 paypal cancel some orders after been confirmed.
Any ideas?

Thanks