• Resolved valdri

    (@valdri)


    Regardless of whether the payment is successful or unsuccessful, you are always redirected to the order received page.

    If the payment is successful, the order gets the status of processing and the customer receives an order confirmation by e-mail.
    But in case of unsuccessful payment, the order is stuck on pending payment, so the customer doesn’t receive an e-mail.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @valdri,

    The plugin is not coded to always redirect to the order received page. It’s specifically coded to return the user to the checkout page in the case of a failed payment.

    If it’s redirecting to the order received page for a failed payment you should investigate if you’re altering the url via a filter.

    Kind regards,

    Thread Starter valdri

    (@valdri)

    On test mode it is handling this properly, but not on live mode.

    In official payment plugin form przelewy24, there was an option to wait for the transaction result (default off). Maybe here przelewy24 don’t wait at all for transaction result and redirect everything to the order received page, and then confirm payment in the background (or sometimes don’t).

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @valdri,

    Do you have webhooks enabled? And if so did you enable all of the events recommended in the plugin documentation?

    Kind regards,

    Thread Starter valdri

    (@valdri)

    I have enabled all events in webhook.

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @valdri,

    I’ve been reviewing the code and I don’t see any reason why the redirect would be different for a test mode charge vs a live mode charge. P24 is a synchronous payment method, meaning the outcome is determined in real time and provided via a webhook or the redirect back to your site. The webhook for failed sources is mostly used by the plugin for asynchronous payment methods, which would be something like SEPA that takes several days to get a response. I am looking at changing that to to include synchronous as well.

    In the plugin’s code, the status of the P24 source is checked, and if it’s in a failed state, the checkout page is rendered. Would you be able to recreate this behavior and provide a gif or screen recording demonstrating?

    Kind Regards,

    Thread Starter valdri

    (@valdri)

    Hi @mrclayton
    https://youtu.be/S-4WPF32quw

    Steps to recreate:
    1. Choose przelewy24
    2. select your bank
    3. sign out without making payment
    4. and you are redirected to order received page

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @valdri,

    Thanks for providing that video, that’s very helpful. What’s happening is since you’re signing out, Stripe is redirecting you back to your checkout page, but the plugin is coded to handle statuses of canceled, failed, or chargeable in the redirect handler. Since the source doesn’t match one of those three statuses, it redirects to the order received page, which it should not.

    I’ll include a fix for this in the next release so that if the customer signs out, they will be sent to the checkout page.

    Kind Regards,

    Plugin Author Payment Plugins

    (@mrclayton)

    Version 3.1.8 released.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Customer doesn’t receive information about failed payment(przelewy24)’ is closed to new replies.