Comment to 'VERY IMPORTANT: Customer Tax ID'
  • Hi @Anton L

    Based on Andrey and Thomlin's explanations and the links they shared above, I would like to seek guidance from you.

    Question #1:

    On this page https://stripe.com/docs/tax/checkout/tax-ids Stripe says:

    You can enable tax ID collection on all payment and subscription mode Sessions

    In the BxPaymentProviderStripeV3.php file, Line 585-591, there is the following session:

     $aSession = array_merge([
                'payment_method_types' => ['card'],
                'customer_email' => !empty($aClient['email']) ? $aClient['email'] : '',
                'mode' => $sMode,
                'success_url' => '',
                'cancel_url' => '',
            ], $aParams);
    

    My question is: Is this session for both: 'all payment' and 'subscription' mode or just for all payment mode only and there is another separate session for 'subscription' mode somewhere else? I would like to enable the Customer Tax ID for all the sessions.

    Question #2:

    What are the correct lines to add?

    According to the example used by Stripe:

      -d "tax_id_collection[enabled]"="true" \
      -d "customer_update[name]"="auto" \
      -d "customer_update[address]"="auto" \
    

    or

      'tax_id_collection[enabled]' => 'true',
      'customer_update[name]' => 'auto',
      'customer_update[address]' => 'auto',
    

    The way things are in the BxPaymentProviderStripeV3.php file.

    I would also like to collect the Real name or Business' legal name and the Billing address to be display on the invoice and receipt documents.

    Thanks in advance for helping.