• Hello,

    I’m contacting you this day because I have an issue on a customer website since some months now.

    The issue is pretty simple, when an user decide to unsubscribe on My Account pages, it sometimes trigger the action 3 times.

    In consequences, the 2th and 3rd time action is executed, PayZen send an error code, PSP_033, and so my customer will get an error saying to contact an admin even if, I think, this error code should be ignored in this case.

    I tried to understand why this action is triggered three times, but I wasn’t able to understand what exactly produce it. I even added some js code to my theme to avoid duplicate clicks on Unsubscribe button, without success sadly.

    For now to fix my issue, I edited your file class-wc-gateway-payzensubscription.php, at line 343, to add a conditionnal before adding a woocommerce notice:

    if (‘PSP_033’ !== $e->getCode()) {
    wc_add_notice(__(‘An error occurred during the cancellation of the subscription. Please contact customer support.’, ‘woo-payzen-payment’), ‘notice’);
    }

    I’m contacting you because I don’t think the issue is on my side and I’m worried about getting my changes lost at next update and having this issue again.

    If you could consider my problem, that would be awesome.

    Best regards,
    Louis

  • The topic ‘Unsubscribe issue’ is closed to new replies.