• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Payments Plugin for Stripe

Stripe payment plugins for your WordPress site

  • Home
  • Documentation
  • Addons
  • Login
    • Sign In
    • Edit Profile
    • Terms & Conditions
    • My Downloads
    • License Key
  • Support
    • Support Forum
    • Forum Search
    • Forum Login
    • Forum Registration
    • Email Support for Customers
  • Contact Us
  • Show Search
Hide Search
You are here: Home / Topics / Problem with FPX payment – failed payment status not checked

[Resolved] Problem with FPX payment – failed payment status not checked

· ·

Home › Forums › Stripe Payments Plugin › Problem with FPX payment – failed payment status not checked

  • This topic has 10 replies, 2 voices, and was last updated 4 years, 8 months ago by biadmin.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • September 16, 2020 at 11:26 am #3266
    biadmin
    Participant

    Hi there,
    Please refer to this video:
    [loom.com/share/da0153ed66d74b1a841f932f34725ed5]
    this is a live payment site and we have issues when customers chose the FPX option
    There are 2 issues:
    1. There is an error: “Error occured: URL: Code 0” when user clicks on the Pay button. We find that this error doesn’t prevent the user from completing the payment, Stripe will still process successfully. But there are occassions when the user will see this message after payment is done:
    [share.getcloudapp.com/nOukZLA6]

    2. If the user choose to cancel the payment before it is processed (like in the video), user will STILL GET DIRECTED TO THE PAYMENT SUCCESS page… this is not right.

    Could you please check on the 2 above and let us know how we can fix it.
    thanks
    Terence

    September 16, 2020 at 12:39 pm #3269
    alexanderfoxc
    Participant

    Hi Terence.

    There is an error: “Error occured: URL: Code 0”

    I couldn’t reproduce this on my test server. Though it shouldn’t let payment proceed if error occurred indeed, I’ll check what’s wrong here.

    2. If the user choose to cancel the payment before it is processed (like in the video), user will STILL GET DIRECTED TO THE PAYMENT SUCCESS page… this is not right.

    Yep, it’s not right indeed. However, it looks like you have improperly configured your checkout results page. As you can see on your video, there is an error displayed:

    System was not able to complete the payment. Invalid payment amount received. Expected 339.09, got 0.00.

    In order to fix this, you need to put your success payment content inside [accept_stripe_payment_checkout] shortcode like this:

    [accept_stripe_payment_checkout]
    Success!
    [/accept_stripe_payment_checkout]
    September 16, 2020 at 12:52 pm #3271
    biadmin
    Participant

    Hi Alex,
    I don’t understand this part:
    In order to fix this, you need to put your success payment content inside [accept_stripe_payment_checkout] shortcode like this:
    [accept_stripe_payment_checkout]
    Success!
    [/accept_stripe_payment_checkout]

    Can you help to explain?
    What I understand is this:
    If the payment is successful then it will redirect to the Thank You page set inside each individual product.
    If the payment fails then it should redirect to the Checkout Result Page URL under Global Settings.
    Are you saying that – everything will redirect to the Thank You page whether the payment status is successful or failed?

    Teremce

    September 16, 2020 at 1:00 pm #3272
    alexanderfoxc
    Participant

    Are you saying that – everything will redirect to the Thank You page whether the payment status is successful or failed?

    That’s correct. And you should use shortcodes that are correspondingly displayed either or error or on success like explained here: https://s-plugins.com/customize-the-thank-page-message-of-stripe-payments-plugin/ (Customize the Message on the Thank You Page section and below).

    Also, can you provide a link to the page with your product so I could have a closer look at your FPX issue? Also please disable Worldfence blocking other countries as I can’t seem to be able to access the website from your video because of it.

    September 16, 2020 at 3:58 pm #3278
    biadmin
    Participant

    You can use this link:[beyondinsights.net/products]

    Can you let me know which country you are accessing the site from, so I can whitelist from Wordfence.
    thanks

    September 18, 2020 at 7:25 am #3296
    biadmin
    Participant

    Hi can I follow up on this?

    September 18, 2020 at 5:51 pm #3299
    alexanderfoxc
    Participant

    Can you disable all countries blocking for now? We have people from different countries in our team, plus country detection isn’t always accurate.

    September 20, 2020 at 5:07 am #3302
    biadmin
    Participant

    ok I have disabled… pls go ahead and let me know when you guys are done.

    September 20, 2020 at 10:49 am #3303
    alexanderfoxc
    Participant

    Thank you.

    1. I can see you have updated FPX add-on to latest version, this is good. It should fix the issue with “Error occurred: URL: Code 0” on your site. Thank you for reporting it.

    2. I can see you’re using some caching plugin. Generally, it’s not a good idea to cache payment popup URLs. If your caching plugin allows you to add exclusions, please add ?asp_action=* to the exclusions list. It should not cache, minify and combine payment popup page\scripts, otherwise your customers may experience issues with payment popup.

    3. Can you let me know which caching plugin you are using? We will try to add compatibility with it if possible, by telling it to not cache payment popup URLs internally.

    4. Last, but not least – every time you make changes to plugin settings or products, or updating plugins, always clear all caches of your caching plugin. Expired cache can cause various issues at random, and not only with our plugin. To check if everything is working properly, access your site via Incognito (Private) browser mode as non-logged-in user.

    September 20, 2020 at 10:52 am #3304
    alexanderfoxc
    Participant

    Regarding #4, I figured it is W3 Total Cache plugin. We have added support for it in the upcoming Stripe Payments version 2.0.36, it should be released sometime next week. Make sure to update it when it prompts. It automatically clears W3TC plugin caches when you make changes to products or plugin settings. You still need to clear its cache when you update any plugin though.

    September 20, 2020 at 2:11 pm #3305
    biadmin
    Participant

    Hi Alex,
    Yes I have added this to the exclusion:
    Screenshot 2020-09-20 at 10.07.09 PM

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Featured Addons and Extensions

  • Subscription Payments Addon
  • Additional Custom Fields
  • Secure Downloads Addon
  • Apple Pay, Google Pay, Afterpay

Addon Bundle

Stripe Payments Addon Bundle

A Simple & Lightweight Plugin

Our Philosophy with the Plugin

Support Links

  • Support Forum
  • Support Contact

Search

Copyright © 2025 | Stripe Plugins | A member of the Tips and Tricks HQ family.