VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: stawebnice on August 20, 2019, 20:30:41 PM

Title: VM 3.4.2+3.5.0: no emails sent when Paypal payment is not completed
Post by: stawebnice on August 20, 2019, 20:30:41 PM
Hi,

I have created new order statuses for cases when people do not finish Paypal payment (e.g. close the Paypal login page, because they do not remember password) and assigned them to order statuses in Paypal payment plugin settings (https://www.screencast.com/t/Tli8LuglHugl)

Cancel transactions has status Transaction pending (my custom order status) assigned, others have Confirmed by shopper

nevertheless, everytime I make test order using Paypal and close the paypal login page, the  order gets to "Pending" status (default system) and no email is sent to administrator or customer

that leads to multiple orders by the same customer, because he does not get order confirmation email and keeps trying again and shopper does not know that he has a new order :(

This happens on all eshops, e.g. https://www.sebimoto.com, also https://www.sebimoto.co.uk

in order statuses list I see that the icons for mails are ok:
https://www.screencast.com/t/ToiLE0N4sxW6

Orders tab in configuration also OK:
https://www.screencast.com/t/UoJP9E0tR

list of orders:
https://www.screencast.com/t/E8YDEkKiH  - order is in pending status

So question is, why does paypal plugin switch to pending, when people close paypal page. it should do the cancel transaction operation...
this way there is no notification and I understand why pending has no email notification... /to prevent multiple emails during the order payment/

Title: Re: VM 3.4.2+3.5.0: no emails sent when Paypal payment is not completed
Post by: Jörgen on August 20, 2019, 23:32:09 PM
Order does not swotch to pending, it is pending right or does Your order history say otherwise ?

Closing PayPal browser page does not initiate any communication with the VM website and therefore order is still pending. The answer is that closing the browsers web page does not start anything on the Paypal site and VM doesn't get informed of this, no cancel operation.

Jörgen @ Kreativ Fotografi


Title: Re: VM 3.4.2+3.5.0: no emails sent when Paypal payment is not completed
Post by: stawebnice on August 20, 2019, 23:35:48 PM
it is in pending state: https://www.screencast.com/t/qvUBjGvl3

that is strange, maybe just paypal thing, but for example gopay payment gate notifies eshop about closed windows...

Title: Re: VM 3.4.2+3.5.0: no emails sent when Paypal payment is not completed
Post by: AH on August 21, 2019, 09:54:45 AM
Quote"So question is, why does paypal plugin switch to pending"

This is base behaviour

When confirmed (before you get to the paypal stage) the order is saved in the database with a status of P - this has not been set by the payment plugin and therefore is not influenced by statuses you configured in the payment plugin

Quote. it should do the cancel transaction operation

Only if the user hits the cancel and return link on paypal

Just closing the PayPal browser payment page means that PayPal does not communicate with the webshop - so the order stays in the pending state.


Title: Re: VM 3.4.2+3.5.0: no emails sent when Paypal payment is not completed
Post by: stawebnice on August 21, 2019, 10:05:15 AM
I understand that, but majority of these problems will be that people do not have paypal account or fail to enter the password :/ and there is no cancel button on login page to go back to eshop
Title: Re: VM 3.4.2+3.5.0: no emails sent when Paypal payment is not completed
Post by: GJC Web Design on August 21, 2019, 11:32:09 AM
there is the return link on the first screen and it  interacts with VM

e.g.

http://xxxx.com/index.php?option=com_virtuemart&view=vmplg&task=pluginUserPaymentCancel&on=NTQN038&pm=4&Itemid=174&lang=en-GB
Title: Re: VM 3.4.2+3.5.0: no emails sent when Paypal payment is not completed
Post by: stawebnice on August 21, 2019, 19:55:53 PM
you realize how funny small this link is, right? but  that is Paypal's issue, not ours
Title: Re: VM 3.4.2+3.5.0: no emails sent when Paypal payment is not completed
Post by: GJC Web Design on August 21, 2019, 20:07:06 PM
Quotebut  that is Paypal's issue, not ours

exactly ... doubt they will be interested though
Title: Re: VM 3.4.2+3.5.0: no emails sent when Paypal payment is not completed
Post by: pinochico on August 23, 2019, 05:07:58 AM
Quotebut for example gopay payment gate notifies eshop about closed windows...

No Petra,

Gopay send Cancel status after 1 hour on production page and this is special only from the Gopay API

Rudolf