#gr_dev
1 messages · Page 1 of 1 (latest)
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
yes
You probably need to check this with an accounting...
Thank you
Happy to help!
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
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_O1cvBZiAodJNmz
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
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?
That means probably, that the card can't be saved.
For recurring payment with Indian card, you need to follow this guide:
https://stripe.com/docs/india-recurring-payments
the address country is IN of the PaymentMethod.
You need to follow the RBI guide.
OKay.
Thank you
Happy to help!