-
Dear @Anton L
I have tried to applied the code that you suggested in order to collect Customer Tax IDs, the Name and the Billing address with Stripe checkout but it didn’t work.
When I place the following code in BxPaymentProviderStripeV3.php:
'tax_id_collection' => [ 'enabled' => true, ], 'customer_update' => [ 'name' => 'auto', 'address' => 'auto', ],I get the following error on the shopping cart page when I click on the ‘Checkout with Stripe’ button:
‘Cannot perform the action. Please report.’
When I remove the following part:
'customer_update' => [ 'name' => 'auto', 'address' => 'auto', ],I am able to proceed till the Stripe checkout page but on that page the customer tax ID field doesn’t show.
Please, is there something missng in the code? Any idea on how to fix it? I am using UNA 13.1.0
Thanks
-
Hello. When you've got 'Cannot perform...' error message you need to check log file. It should have more detailed description of the problem. It should help to understand what can be done.
-
Thanks for your reply. Oh yeah, I forgot about that one.
Here are the errors in the sys_payments log:
Jun 09 12:24:57 [23] /m/payment/call/stripe_v3/get_session_recurring/7/ :
[stripe_v3]
Create Session Error: `customer_update` can only be used with `customer`.
Jun 09 12:24:57 [23] /m/payment/call/stripe_v3/get_session_recurring/7/ :
[stripe_v3]
array (
'charge' => NULL,
'code' => NULL,
'decline_code' => NULL,
'doc_url' => NULL,
'message' => '`customer_update` can only be used with `customer`.',
'param' => NULL,
'payment_intent' => NULL,
'payment_method' => NULL,
'setup_intent' => NULL,
'source' => NULL,
'type' => 'invalid_request_error',
'request_log_url' => 'https://dashboard.stripe.com/test/logs/req_xxxxxxxxxxxxxx?t=xxxxxxxxxx',
)
-
Hi @Anton L
A week ago, and per your request, i posted the error messages found in the sys_payment log. Please could you provide a fix to this problem?
Thank you.
-