#juanvico_48587

1 messages · Page 1 of 1 (latest)

iron inletBOT
#

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.

gaunt mirage
#

Hi
You are referring to a dashboard section

#

what you mean exactly by your question, could you share more details ?

mental walrus
#

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

gaunt mirage
#

You simply follow the next sections after that one

mental walrus
#

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',
    });```
gaunt mirage
#

can you share the payment intent Id?

mental walrus
#

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```
gaunt mirage
#

The status of the PaymentIntent, is requires_confirmation so you need to confirm the payment_intent

gaunt mirage
mental walrus
#

thanks that worked!

#

and do you know what happens after the 7 days of the hold passes? it gets cancelled?