Apple pay and Google pay not working efficiently with Woocommerce blocks
-
Hi
I am making some changes to a staging version of my website, I am messing about with the Woocommerce blocks checkout and cart page and I am using the WooCommerce Stripe Gateway plugin to accept credit card payments which seems to work just fine.
However, for some reason, the apple pay and google pay methods are not working properly. The google pay method seems to take about 20/25 seconds to accept payment and once that is done it stays on the cart page for another 10/15 seconds before it redirects the customer to the thank you page. At this point, my customers would more than likely be getting frustrated.
With the apply pay method, I seem to get an error “the website was not able to complete the payment. Please try again later” but the payment still went through and the bank is charged, the order comes through to the backend as normal.
Any help on this would be greatly appreciated as this is the only plugin that seems to work-ish with the Wooocommerce blocks cart and checkout page that has an express checkout option for my customers.
Thanks in advance
HusseinThe page I need help with: [log in to see the link]
-
Hey there!
It looks like you’ve sent us the link to your live site (from what I can tell), but the issue is showing on a staging site. Is this correct?
If so, please send the link to the staging site so that we can take a look at this.
Also, if you can enable logs for Stripe on that site, and then run your test transactions again, that will be helpful .
To find the generated logs:
1. Go to
WooCommerce > Status > Logs
2. In the top right corner, open the drop-down and select the Stripe log that you need, then clickview
to load it. Here’s what that looks like: https://d.pr/i/tCljQd
3. Copy/paste the relevant part of the log into your response so we can take a look.Hi mate
Thanks for the reply, sorry the staging URL is https://staging17.myconsumables.com/
Below is the log for the transactions from this morning that showed the failed message via apple via however the transaction was still charged and the order did actually come through to the back end.
2021-06-14T09:07:00+00:00 DEBUG ====Stripe Version: 5.2.3==== ====Start Log==== Stripe PaymentIntent pi_1J2Bl1IxY1N5lRiHTm2bWG8A initiated for order 8914 ====End Log==== 2021-06-14T09:07:00+00:00 DEBUG ====Stripe Version: 5.2.3==== ====Start Log==== payment_intents/pi_1J2Bl1IxY1N5lRiHTm2bWG8A/confirm request: Array ( [source] => src_1J2BkqIxY1N5lRiHbnIXIged ) ====End Log==== 2021-06-14T09:07:02+00:00 DEBUG ====Stripe Version: 5.2.3==== ====Start Log==== Stripe PaymentIntent pi_1J2Bl1IxY1N5lRiHTm2bWG8A succeeded for order 8914 ====End Log==== 2021-06-14T09:07:02+00:00 DEBUG ====Stripe Version: 5.2.3==== ====Start Log==== Processing response: stdClass Object ( [id] => ch_1J2Bl2IxY1N5lRiHl55AtqVs [object] => charge [amount] => 1199 [amount_captured] => 1199 [amount_refunded] => 0 [application] => [application_fee] => [application_fee_amount] => [balance_transaction] => txn_1J2Bl4IxY1N5lRiHaWXWyJZL [billing_details] => stdClass Object ( [address] => stdClass Object ( [city] => Leigh [country] => GB [line1] => 20 Willow Crescent [line2] => [postal_code] => WN7 5RN [state] => England ) [email] => [email protected] [name] => Mark Green [phone] => 07810877426 ) [calculated_statement_descriptor] => MYCONSUMABLES [captured] => 1 [created] => 1623661620 [currency] => gbp [customer] => cus_JfWo4z3CAdwmPj [description] => MYconsumables - Order 8914 [destination] => [dispute] => [disputed] => [failure_code] => [failure_message] => [fraud_details] => stdClass Object ( ) [invoice] => [livemode] => 1 [metadata] => stdClass Object ( [customer_name] => Mark Green [customer_email] => [email protected] [order_id] => 8914 [site_url] => https://staging17.myconsumables.com ) [on_behalf_of] => [order] => [outcome] => stdClass Object ( [network_status] => approved_by_network [reason] => [risk_level] => normal [seller_message] => Payment complete. [type] => authorized ) [paid] => 1 [payment_intent] => pi_1J2Bl1IxY1N5lRiHTm2bWG8A [payment_method] => src_1J2BkqIxY1N5lRiHbnIXIged [payment_method_details] => stdClass Object ( [card] => stdClass Object ( [brand] => mastercard [checks] => stdClass Object ( [address_line1_check] => pass [address_postal_code_check] => pass [cvc_check] => ) [country] => GB [exp_month] => 10 [exp_year] => 2022 [fingerprint] => 3so047l5QZIcbpq2 [funding] => debit [installments] => [last4] => 5950 [network] => mastercard [three_d_secure] => [wallet] => stdClass Object ( [apple_pay] => stdClass Object ( ) [dynamic_last4] => 6106 [type] => apple_pay ) ) [type] => card ) [receipt_email] => [receipt_number] => [receipt_url] => https://pay.stripe.com/receipts/acct_1HnufWIxY1N5lRiH/ch_1J2Bl2IxY1N5lRiHl55AtqVs/rcpt_JfWofPpvVH595cYRng9b39rBRct7x3d [refunded] => [refunds] => stdClass Object ( [object] => list [data] => Array ( ) [has_more] => [total_count] => 0 [url] => /v1/charges/ch_1J2Bl2IxY1N5lRiHl55AtqVs/refunds ) [review] => [shipping] => stdClass Object ( [address] => stdClass Object ( [city] => Leigh [country] => GB [line1] => 20 Willow Crescent [line2] => [postal_code] => WN7 5RN [state] => England ) [carrier] => [name] => Mark Green [phone] => [tracking_number] => ) [source] => stdClass Object ( [id] => src_1J2BkqIxY1N5lRiHbnIXIged [object] => source [amount] => [card] => stdClass Object ( [exp_month] => 10 [exp_year] => 2022 [last4] => 5950 [country] => GB [brand] => MasterCard [address_line1_check] => pass [address_zip_check] => pass [funding] => debit [tokenization_method] => apple_pay [dynamic_last4] => 6106 [fingerprint] => 3so047l5QZIcbpq2 [three_d_secure] => optional [name] => [cvc_check] => ) [client_secret] => src_client_secret_ARQZa4LdYJsHXwbzywwJdRf5 [created] => 1623661622 [currency] => [flow] => none [livemode] => 1 [metadata] => stdClass Object ( ) [owner] => stdClass Object ( [address] => stdClass Object ( [city] => Leigh [country] => GB [line1] => 20 Willow Crescent [line2] => [postal_code] => WN7 5RN [state] => England ) [email] => [email protected] [name] => Mark Green [phone] => 07810877426 [verified_address] => [verified_email] => [verified_name] => [verified_phone] => ) [statement_descriptor] => [status] => consumed [type] => card [usage] => reusable ) [source_transfer] => [statement_descriptor] => myconsumables [statement_descriptor_suffix] => [status] => succeeded [transfer_data] => [transfer_group] => ) ====End Log==== 2021-06-14T09:07:02+00:00 DEBUG ====Stripe Version: 5.2.3==== ====Start Log==== balance/history/txn_1J2Bl4IxY1N5lRiHaWXWyJZL ====End Log====
this is another test I have just done:
2021-06-14T19:11:27+00:00 DEBUG ====Stripe Version: 5.2.3==== ====Start Log==== sources/src_1J2LBrIxY1N5lRiHGfPrQcDU ====End Log==== 2021-06-14T19:11:28+00:00 DEBUG ====Stripe Version: 5.2.3==== ====Start Log==== customers request: Array ( [email] => [email protected] [description] => Name: Mark Green, Guest [name] => Mark Green [metadata] => Array ( ) [preferred_locales] => Array ( [0] => en-US ) ) ====End Log==== 2021-06-14T19:11:28+00:00 DEBUG ====Stripe Version: 5.2.3==== ====Start Log==== Info: Begin processing payment for order 8929 for the amount of 14.39 ====End Log==== 2021-06-14T19:11:28+00:00 DEBUG ====Stripe Version: 5.2.3==== ====Start Log==== payment_intents request: Array ( [source] => src_1J2LBrIxY1N5lRiHGfPrQcDU [amount] => 1439 [currency] => gbp [description] => MYconsumables - Order 8929 [metadata] => Array ( [customer_name] => Mark Green [customer_email] => [email protected] [order_id] => 8929 [site_url] => https://staging17.myconsumables.com ) [capture_method] => automatic [payment_method_types] => Array ( [0] => card ) [customer] => cus_JfgZkdIa0hLXku [statement_descriptor] => myconsumables [shipping] => Array ( [name] => Mark Green [address] => Array ( [line1] => 20 Willow Crescent [line2] => [city] => Leigh [country] => GB [postal_code] => WN7 5RN [state] => England ) ) ) ====End Log==== 2021-06-14T19:11:29+00:00 DEBUG ====Stripe Version: 5.2.3==== ====Start Log==== Stripe PaymentIntent pi_1J2LC0IxY1N5lRiHgupBAErw initiated for order 8929 ====End Log==== 2021-06-14T19:11:29+00:00 DEBUG ====Stripe Version: 5.2.3==== ====Start Log==== payment_intents/pi_1J2LC0IxY1N5lRiHgupBAErw/confirm request: Array ( [source] => src_1J2LBrIxY1N5lRiHGfPrQcDU ) ====End Log==== 2021-06-14T19:11:31+00:00 DEBUG ====Stripe Version: 5.2.3==== ====Start Log==== Stripe PaymentIntent pi_1J2LC0IxY1N5lRiHgupBAErw succeeded for order 8929 ====End Log==== 2021-06-14T19:11:31+00:00 DEBUG ====Stripe Version: 5.2.3==== ====Start Log==== Processing response: stdClass Object ( [id] => ch_1J2LC1IxY1N5lRiHqzixmf4m [object] => charge [amount] => 1439 [amount_captured] => 1439 [amount_refunded] => 0 [application] => [application_fee] => [application_fee_amount] => [balance_transaction] => txn_1J2LC3IxY1N5lRiHQEInTKI4 [billing_details] => stdClass Object ( [address] => stdClass Object ( [city] => Leigh [country] => GB [line1] => 20 Willow Crescent [line2] => [postal_code] => WN7 5RN [state] => England ) [email] => [email protected] [name] => Mark Green [phone] => 07810877426 ) [calculated_statement_descriptor] => MYCONSUMABLES [captured] => 1 [created] => 1623697889 [currency] => gbp [customer] => cus_JfgZkdIa0hLXku [description] => MYconsumables - Order 8929 [destination] => [dispute] => [disputed] => [failure_code] => [failure_message] => [fraud_details] => stdClass Object ( ) [invoice] => [livemode] => 1 [metadata] => stdClass Object ( [customer_name] => Mark Green [customer_email] => [email protected] [order_id] => 8929 [site_url] => https://staging17.myconsumables.com ) [on_behalf_of] => [order] => [outcome] => stdClass Object ( [network_status] => approved_by_network [reason] => [risk_level] => normal [seller_message] => Payment complete. [type] => authorized ) [paid] => 1 [payment_intent] => pi_1J2LC0IxY1N5lRiHgupBAErw [payment_method] => src_1J2LBrIxY1N5lRiHGfPrQcDU [payment_method_details] => stdClass Object ( [card] => stdClass Object ( [brand] => mastercard [checks] => stdClass Object ( [address_line1_check] => pass [address_postal_code_check] => pass [cvc_check] => ) [country] => GB [exp_month] => 10 [exp_year] => 2022 [fingerprint] => 3so047l5QZIcbpq2 [funding] => debit [installments] => [last4] => 5950 [network] => mastercard [three_d_secure] => [wallet] => stdClass Object ( [apple_pay] => stdClass Object ( ) [dynamic_last4] => 6106 [type] => apple_pay ) ) [type] => card ) [receipt_email] => [receipt_number] => [receipt_url] => https://pay.stripe.com/receipts/acct_1HnufWIxY1N5lRiH/ch_1J2LC1IxY1N5lRiHqzixmf4m/rcpt_JfgZgao11PTCWMcyJm5U4OX3QkfDVSa [refunded] => [refunds] => stdClass Object ( [object] => list [data] => Array ( ) [has_more] => [total_count] => 0 [url] => /v1/charges/ch_1J2LC1IxY1N5lRiHqzixmf4m/refunds ) [review] => [shipping] => stdClass Object ( [address] => stdClass Object ( [city] => Leigh [country] => GB [line1] => 20 Willow Crescent [line2] => [postal_code] => WN7 5RN [state] => England ) [carrier] => [name] => Mark Green [phone] => [tracking_number] => ) [source] => stdClass Object ( [id] => src_1J2LBrIxY1N5lRiHGfPrQcDU [object] => source [amount] => [card] => stdClass Object ( [exp_month] => 10 [exp_year] => 2022 [last4] => 5950 [country] => GB [brand] => MasterCard [address_line1_check] => pass [address_zip_check] => pass [funding] => debit [tokenization_method] => apple_pay [dynamic_last4] => 6106 [fingerprint] => 3so047l5QZIcbpq2 [three_d_secure] => optional [name] => [cvc_check] => ) [client_secret] => src_client_secret_XJPEyj0TstRGgAa2MbmFeWbj [created] => 1623697890 [currency] => [flow] => none [livemode] => 1 [metadata] => stdClass Object ( ) [owner] => stdClass Object ( [address] => stdClass Object ( [city] => Leigh [country] => GB [line1] => 20 Willow Crescent [line2] => [postal_code] => WN7 5RN [state] => England ) [email] => [email protected] [name] => Mark Green [phone] => 07810877426 [verified_address] => [verified_email] => [verified_name] => [verified_phone] => ) [statement_descriptor] => [status] => consumed [type] => card [usage] => reusable ) [source_transfer] => [statement_descriptor] => myconsumables [statement_descriptor_suffix] => [status] => succeeded [transfer_data] => [transfer_group] => ) ====End Log==== 2021-06-14T19:11:31+00:00 DEBUG ====Stripe Version: 5.2.3==== ====Start Log==== balance/history/txn_1J2LC3IxY1N5lRiHQEInTKI4 ====End Log====
anything look suspicious?
Hi @pipin3000. Thanks for the logs. No, that looks normal. At this point, I think we would want to log into your staging site and take a look there. Can you contact our support team directly by going to https://woocommerce.com/my-account/create-a-ticket/? This will allow us to troubleshoot this more deeply than we could on a public forum. Thanks! I’m going to resolve this thread as well since we’ll be communicating via email instead.
- The topic ‘Apple pay and Google pay not working efficiently with Woocommerce blocks’ is closed to new replies.