• Resolved rogerrwl

    (@rogerrwl)


    Within the past month the following error is displayed on the MY ACCOUNT page / “Payment Methods” is used to “ADD PAYMENT METHOD” – Credit Card.

    • Oops, there was a temporary payment error. Please try another payment method or contact us to complete your transaction.

    I’ve updated all plugins. I’ve tried deactivating all but Woocommerce and Subscriptions. My theme is old so I created a staging site using StoreFront and same symptom. I enabled the plugin debugging and the following errors are thrown:

      thrown in /.../wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/payment-forms/class-wc-braintree-hosted-fields-payment-form.php on line 191
    [21-Feb-2023 01:01:52 UTC] [CRITICAL] : Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, string given in /home/askwino7/club.winelab.net/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/payment-forms/class-wc-braintree-hosted-fields-payment-form.php:191
    Stack trace:
    #0 //wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/payment-forms/class-wc-braintree-hosted-fields-payment-form.php(191): array_map('\\SkyVerge\\WooCo...', '')
    #1 //wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/payment-forms/class-wc-braintree-hosted-fields-payment-form.php(154): WC_Braintree_Hosted_Fields_Payment_Form->get_enabled_card_types()
    #2 //wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/payment-forms/abstract-wc-braintree-payment-form.php(207): WC_Braintree_Hosted_Fields_Payment_Form->get_payment_form_handler_js_params()
    #3 //wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/Handlers/Script_Handler.php(167): WC_Braintree_Payment_Form->get_js_handler_args()
    #4 //wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway-payment-form.php(1071): SkyVerge\WooCommerce\PluginFramework\v5_10_12\Handlers\Script_Handler->get_handler_js(Array, 'WC_
    #5 //wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/Handlers/Script_Handler.php(134): SkyVerge\WooCommerce\PluginFramework\v5_10_12\SV_WC_Payment_Gateway_Payment_Form->get_handler_js(Array, 'WC_Braintree_Cr...', '')
    #6 //wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway-payment-form.php(1049): SkyVerge\WooCommerce\PluginFramework\v5_10_12\Handlers\Script_Handler->get_safe_handler_js()
    #7 //wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/payment-forms/abstract-wc-braintree-payment-form.php(167): SkyVerge\WooCommerce\PluginFramework\v5_10_12\SV_WC_Payment_Gateway_Payment_Form->render_js()
    #8 //wp-includes/class-wp-hook.php(307): WC_Braintree_Payment_Form->render_js('')
    #9 //wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #10 /wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #11 /wp-includes/general-template.php(3058): do_action('wp_footer')
    #12 /wp-content/themes/shop-isle-pro/footer.php(24): wp_footer()
    #13 /wp-includes/template.php(770): require_once('/home/askwino7/...')
    #14 /wp-includes/template.php(716): load_template('/home/askwino7/...', true, Array)
    #15 /wp-includes/general-template.php(92): locate_template(Array, true, true, Array)
    #16 /wp-content/themes/shop-isle-pro/page.php(149): get_footer()
    #17 /wp-includes/template-loader.php(106): include('/home/askwino7/...')
    #18 /wp-blog-header.php(19): require_once('/home/askwino7/...')
    #19 /index.php(17): require('/home/askwino7/...')
    #20 {main}
      thrown
    • This topic was modified 1 year, 9 months ago by rogerrwl.
    • This topic was modified 1 year, 9 months ago by rogerrwl.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there @rogerrwl

    Thank you for reaching out about that. As I understand, a temporary payment error is displayed while a customer wishes to add a new credit card, through their “My Account” page. Correct?

    While trying to reproduce this, using the latest version of the Braintree for WooCommerce Payment Gateway plugin, I faced a similar message; on the Checkout page though.

    Please contact us at WooCommerce.com > My Account > Support. You may need to create an account before you can access that page.

    Please include a link to this forum thread, so that we can keep track of what’s already been done.

    Furthermore, kindly include a copy of your site’s System Status, while getting in touch via the Support page, mentioned above. You can find it via WooCommerce > Status. Select Get system report and then Copy for support.

    We will be able to help you further there.

    • This reply was modified 1 year, 9 months ago by anastas10s. Reason: typo
    Thread Starter rogerrwl

    (@rogerrwl)

    Yes, the error is on the customer “My Account” page.

    I submitted a support ticket. Thank you!

    Thank you, @rogerrwl . I will be marking this thread as resolved now. Kindly continue the correspondence via the support ticket onwards.

    Have a great one. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Oops, there was a temporary payment error’ is closed to new replies.