#shaharyarilyas

1 messages · Page 1 of 1 (latest)

neon rootBOT
weary iron
umbral nest
#
    const paymentMethod = await stripe.paymentMethods.create(
      {
        type: "card",
        card: { token: "tok_visa" },
      },
      {
        stripeAccount: "acct_1OAlJlQo3UxrCnaQ",
      }
    );

    const intent = await stripe.paymentIntents.create(
      {
        currency: "gbp",
        amount: 1000,
        payment_method_types: ["card", "card_present"],
        payment_method: paymentMethod.id,
        capture_method: "manual",
      },
      {
        stripeAccount: "acct_1OAlJlQo3UxrCnaQ",
      }
    );
#

here is my code

#

you can see payment status is incomplete

weary iron
#

can you share the PaymentIntent id?

umbral nest
#

pi_3OAmtmQo3UxrCnaQ1IJjvqHV

#

@weary iron

weary iron
#

what are you trying to achieve here? Is the customer on-session and you're trying collect payment from them?

umbral nest
#

i want to test payment-intent api for custom connect accounts simple

weary iron
#

the PaymentIntent requires confirmation as you'll be able to see from the status in the response. If you're just looking to test things out, include confirm=true when creating the PaymentIntent

umbral nest
#

how i show statement descriptor if i use direct charges for connect account