• Resolved steamedian

    (@steamedian)


    While styling and testing for error messages, I’m getting an issue when a user inputs a CC with errors (invalid card, number expiration in the past, etc) – the error message shows up, but the HTML for coupon code gets stripped.

    See below for screenshots:

    Before Error
    https://prntscr.com/26fktiz

    After Error
    https://prntscr.com/26fkuij

    Any thoughts on this?

    The page I need help with: [log in to see the link]

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

    (@mrclayton)

    Hi @steamedian,

    The first thing I see is you’re using multiple Stripe plugins at the same time which isn’t recommended. It looks like you’re doing that to route payments to different accounts based on the customer’s location.

    The plugin removes existing notices when an error message is triggered so that might be what’s happening, we’ll do some testing. But the card form is way below the coupon code, it’s doubtful anyone would get to the card section before entering the coupon info since the coupon is the first element on your page.

    Kind Regards,

    Thread Starter steamedian

    (@steamedian)

    The first thing I see is you’re using multiple Stripe plugins at the same time which isn’t recommended. It looks like you’re doing that to route payments to different accounts based on the customer’s location.

    Yes – the plan is to serve payment methods depending on the user’s location. When launched, you won’t be able to see the multiple Stripe options.

    The plugin removes existing notices when an error message is triggered so that might be what’s happening, we’ll do some testing.

    I’m OK with the plugin removing an existing notice or error message, but the coupon form shouldn’t be amongst those removed.

    But the card form is way below the coupon code, it’s doubtful anyone would get to the card section before entering the coupon info since the coupon is the first element on your page.

    While this is true, there’s still a good possibility of it occurring. I’d like to ensure a smooth user experience by not having the coupon form stripped upon error.

    Let me know if you need any additional details on this – happy to provide insights to help debug =)

    Plugin Author Payment Plugins

    (@mrclayton)

    @steamedian Stripe supports the ability to add multiple bank accounts to a single account so you don’t incur conversion fees. That should solve the problem of using multiple Stripe plugins for different accounts.

    Can you reach out to us using the Help button in the plugin settings? You’ll need to test any updates we add to exclude the coupon notice.

    Kind regards

    Plugin Author Payment Plugins

    (@mrclayton)

    Setting to resolved. The next version of the plugin will exclude coupon notices when clearing notices before showing a validation error.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Credit card errors remove coupon code HTML?’ is closed to new replies.