• Resolved labboy0276

    (@labboy0276)


    Hello

    We noticed whenever we apply the JS event update_checkout on the checkout page, it empties the stripe cc field.

    Do you know of a solution to stop this from happening?

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

    (@mrclayton)

    Hi @labboy0276

    Please see my response to your support email. This is not a bug with the plug-in and is the expected behavior.

    Woocommerce provides a set of filters which you can use to prevent the checkout page HTML from being refreshed. If you choose to do that proceed with caution because plug-in uses data stored in the html to create payment objects.

    Kind regards,

    Thread Starter labboy0276

    (@labboy0276)

    Thanks for getting back to me,

    Do you happen to know where a list of these filters are?

    Plugin Author Payment Plugins

    (@mrclayton)

    The filter name is woocommerce_update_order_review_fragments which is located in the woocommerce/includes/class-wc-ajax.php file.

    You would use that filter to unset the index .woocommerce-checkout-payment which will prevent the payment html section from being refreshed.

    Kind Regards,

    Thread Starter labboy0276

    (@labboy0276)

    Thank you, with some other JS magic and what not I was able to get this to work as we needed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Stripe CC Field empties out on update_checkout’ is closed to new replies.