PayPal plugin - do not register if payment was cancelled

magvils08

New Member
Hi,

I have a register form with the PayPal plugin as payment method.
When I look at the register table, I can see the PayPal transaction ID and status of the payment.

However, if someone is redirected to the PayPal payment and cancels (eg. closes the window), the participants is registered either way.

I can see the ones that cancels the payment (no ID or status), but is it possible to not register the participants to the table if the PayPal payment was not completed? And maybe show a message telling that the payment was not successful?
 
I can see the ones that cancels the payment (no ID or status), but is it possible to not register the participants to the table if the PayPal payment was not completed? And maybe show a message telling that the payment was not successful?

No, there isn't a way to not create the row for the form submission, just because of the way PayPal IPN works. It's asyncronous, meaning that the 'completed' response from PayPal doesn't arrive for some unspecified amount of time. Which could be hours. So we have to go ahead and create the record, and then update it whenever we get an IPN callback from PayPal with a status update.

Which is why we provide the "IPN Fields", where you can specify an element to store the IPN status, which gets updated whenever an IPN callback arrives from PayPal. So if the user never even clicks Pay, there will be no status. If they pay but the payment fails, the status will be Fail (or whatever it is). If they reverse their payment, it'll show as Reversed, etc. If the payment succeeds, it'll be Success.

So basically you have to then filter your data on the IPN Status field.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top