• Resolved Hughsp

    (@rescaes)


    While using the shortcode in a post using Avada theme, (no elementor involved) everything was ok until clicking over the credit card icons to proceed to Stripe and make the payment. At that point the “iframe” loaded the stripe page but only the general layout… all the objects greyed out and pulsating slowly. I think that must have to do with how the css, jquery (or whatever) is loaded that somehow was not alright. In any case, the only way I could make it work was forcing to open the stripe page in a new tab:

    <form action="<?php echo get_site_url(); ?>" target="_blank">

    in : seatreg/php/services/SeatregPaymentService.php

    The only inconvenient is I’ll have to redo it anytime the plugin updates.

    It would be a simple improvement to add that option to the settings (“open payment gateway” in new window or something). Or at least to have a filter where you could implement it with a code snippet without touching the code directly.

    That’s it, more a feature request than an issue and just in case someone else is in the same situation.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author thesiim

    (@thesiim)

    Indeed it seems like Stripe checkout is not able to run in a iframe. Will create a task. Do you have “Booking redirect to status page” enabled in SeatReg settings?

    Plugin Author thesiim

    (@thesiim)

    Updated the plugin to version 1.51.0
    Now payment gateways open in a new tab. Should fix the issue. Thank you.

    Thread Starter Hughsp

    (@rescaes)

    Hi!

    Yes, I have “Booking redirect to status page” enabled.

    Thanks for the update, that is awesome as a fix. Probably loading inside the iframe would be better in the future to avoid ad/pop-up blockers from blocking when opening a new tab/window. But anyway, that’s is a perfect workaround that works for me for now.

    Thanks very much for your quick support!

    Thread Starter Hughsp

    (@rescaes)

    Hi,

    I think this change brought an important issue. Since now the Stripe gateway opens in a new tab/window, the original tab/window where the link to pay is available (the bar at the bottom with credit card icons) is still visible. That means that after paying in Stripe in the new tab/window, you can come back to the original one and click over the credit card icons to proceed AGAIN to the payment. I don’t know if there’s something wrong with my config. but at least I could make the payment again as many times as I like and even if I get the white empty page with the message “The payment is already proccessed or doesn’t exist”, ACTUALLY the payment went through in Stripe, charging as many times again for the same booking as times I clicked on the payment icons.

    That could not happen before because everything was loaded on the same page and after the payment couldn’t go back (unless clicking on “back”) to the payment button. But now, it is very explicit.

    Could you please double check in case it is not only me?

    Thanks!

    Plugin Author thesiim

    (@thesiim)

    Hey,
    Yes it is a problem. When you open a new tab then the old one wont refresh automatically. After the payment has made you can refresh the booking status page manually and you will see that the payment buttons are gone. One idea to solve this is to refresh the booking status page automatically when we detect tab focus.

    Plugin Author thesiim

    (@thesiim)

    Updated the plugin to version 1.51.1
    Should solve the issue.

    Thread Starter Hughsp

    (@rescaes)

    Hi!

    Much better! ?? Ideally (I don’t know if possible) Stripe would not let you pay twice for the same booking even if you click in the link but at least removing the link is good although it looks a little funny to have the iframe refreshed whenever you jump in/out the tab.

    Thanks very much for your quick fix!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Stripe not loading’ is closed to new replies.