• Resolved mpark123

    (@mpark123)


    Hi.

    I’m trying to test my page to display error messages. From Stripe docs I enter this number: 4100000000000019 (Results in a charge with a risk level of highest. The charge is blocked as it’s considered fraudulent.)

    My error page has the following code:

    [accept_stripe_payment_checkout_error]
    <p style="text-align: center;">There was an error with the credit card transaction. Error details below:
    {error_msg}</p>
    <p style="text-align: center;">Sorry about that. Please go back, review your information and try again.</p>
    [/accept_stripe_payment_checkout_error]

    But when the payment redirects, it never renders the site. Just a plain white page where the payment status page should be.

    The log says:

    
    [06/18/2018 9:00 AM] - Payment processing started.
    [06/18/2018 9:00 AM] - Triggering hook for addons to process posted data if needed.
    [06/18/2018 9:00 AM] - Checking received data.
    [06/18/2018 9:00 AM] - Got product ID: 1047. Trying to get info from database.
    [06/18/2018 9:00 AM] - Got required product info from database.
    [06/18/2018 9:00 AM] - Getting API keys and trying to create a charge.
    [06/18/2018 9:00 AM] - Firing pre-payment hook.
    [06/18/2018 9:00 AM] - Processing payment.
    [06/18/2018 9:00 AM] - FAILURE: Your card was declined.
    [06/18/2018 9:00 AM] - FAILURE: Error occured after user interacted with popup.
    

    Best,
    mpark

    • This topic was modified 6 years, 9 months ago by mpark123.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    But when the payment redirects, it never renders the site. Just a plain white page where the payment status page should be.

    Did you clear the browser cache before trying another transaction?

    Regards

    Thread Starter mpark123

    (@mpark123)

    Did you clear the browser cache before trying another transaction?

    Yes. Tried in multiple browsers also. Same result. According to the log, it seems more like a hard error.

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    According to the log, it seems more like a hard error.

    Do you mean the following errors in the log?

    – FAILURE: Your card was declined.
    – FAILURE: Error occured after user interacted with popup.

    Thread Starter mpark123

    (@mpark123)

    Yes?

    Plugin Support mbrsolution

    (@mbrsolution)

    Thank you for reporting back. So that means the issue is not with the plugin but with the card you used. If that is the case and you don’t nee any more help, can you mark this thread as resolved.

    Kind regards

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Hi @mpark123.

    Have you set custom thank you page URL for your product where this shortcode is on?

    E.g. in product settings, you need to enter your custom checkout results page in “Thank You Page URL” field.

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    I have been able to find an issue which was ignoring custom thank you page URL product setting under some circumstances, I guess that was your case. New plugin version with this fix should be released shortly, within a day or two max.

    Also please note that your custom thank you page needs [accept_stripe_payment_checkout][/accept_stripe_payment_checkout] block where you need to show successful payment information.

    Thank you @mpark123 for bringing this up and also thanks to @mbrsolution for making sure this is not caching-related issue.

    Thread Starter mpark123

    (@mpark123)

    Also please note that your custom thank you page needs [accept_stripe_payment_checkout][/accept_stripe_payment_checkout] block where you need to show successful payment information.

    Yes, I have a custom thank you page, which normally displays fine, but when trying to display the error, it never renders.

    I will await this plugin update and see if it fixes the problem. Thank you for responding to me.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Not able to display error messages’ is closed to new replies.