#juanvico_48587
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- juanvico_48587, 12 hours ago, 10 messages
- juan-connect-transfers, 3 days ago, 49 messages
Hi
You are referring to a dashboard section
what you mean exactly by your question, could you share more details ?
Hi yes sure, like I want to be able to create a hold payment without using the dashboard, but instead using code
basically doing these steps but in code
I must be doing something wrong - because when following the next section the status of the payment it;s incomplete instead of uncaptured
amount: 1000 * 100,
currency: 'uyu',
payment_method_types: ['card'],
capture_method: 'manual',
customer: 'cus_P8Nq9uIsnnxDhD',
payment_method: 'pm_1OLFACAroboQJSjRERXhXXIy',
});```
can you share the payment intent Id?
sure !
pi_3OMUmGAroboQJSjR1GLbxWAx
I had to do this to be able to get the uncaptured state
amount: 1000 * 100,
currency: 'uyu',
// payment_method_types: ['card'],
capture_method: 'manual',
customer: 'cus_P8Nq9uIsnnxDhD',
});
const confirmation = await this.stripe.paymentIntents.confirm(
paymentIntent.id,
{
payment_method: 'pm_1OLFACAroboQJSjRERXhXXIy',
return_url: 'https://www.test.com'
}
);
return confirmation```
The status of the PaymentIntent, is requires_confirmation so you need to confirm the payment_intent
what you can do is to add confirm:true in this call
thanks that worked!
and do you know what happens after the 7 days of the hold passes? it gets cancelled?