#gr_dev

1 messages · Page 1 of 1 (latest)

echo domeBOT
simple viper
#

When using PaymentIntent APIs, you can't specify taxes. You need to compute the amount+tax and pass it to the PaymentIntent's amount in order to charge the customer.

#

Stripe Tax works with Invoices/Billing, Checkout

low ibex
#

OKay.
Same for coupon right?

#

End of the year how can I calculate taxes?

simple viper
simple viper
low ibex
#

Thank you

simple viper
#

Happy to help!

low ibex
#

Hello

#

Whan making payment using this step and set to default payment method to the customer its throw error like:
This PaymentMethod was previously used without being attached to a Customer or was detached from a Customer, and may not be used again.

#
const options = {
                mode: 'payment',
                amount: 100,
                currency: 'USD',
                // Fully customizable with appearance API.
                appearance: {...}
            };
            this.elements = this.stripeV3.elements(options);
            const element = {
            };
            this.paymentElement = this.elements.create('payment', element);

Create payment intent
const intent = await stripe.paymentIntents.create(
                {
                    amount: 100,
                    currency: 'USD',
                    automatic_payment_methods: { enabled: true },
                    customer: job.customer_id,
                },
                { stripeAccount: job.account_id },
            );
last confirm payment

simple viper
low ibex
#

req_O1cvBZiAodJNmz

simple viper
#

thanks for sharing, let me check.

#

This requestId was made by your nodeJs backend. There is no link with the code you are sharing.

#

You need to create/collect the PaymentMethod again for that customer

low ibex
#

After payment was successfully, I retrieved the payment intent object using payment intent id, from the payment intent object take PM and attach to customer and set as default at that time got this error.

#

is there something wrong?

simple viper
#

That means probably, that the card can't be saved.

low ibex
#

Okay

#

Let me check for US

#

Same error for US: req_F2BqYn05clHZ8O

simple viper
#

the address country is IN of the PaymentMethod.

simple viper
low ibex
#

OKay.
Thank you

simple viper
#

Happy to help!