#binayak

1 messages ยท Page 1 of 1 (latest)

visual finchBOT
lean jolt
#

Hello ๐Ÿ‘‹
What metadata are you referring to exactly?
Can you share an example?

rigid kernel
#

the response object

lean jolt
#

Where are you seeing the order ID in metadata?

#

Do you mean the PaymentIntent ID?

rigid kernel
#

nope, I am seeing the string here

#

here, order_id is integer

#

hence confusion caused

lean jolt
#

What are you exactly referring to as a String?
Can you clarify with an example object or a request ID?

rigid kernel
#

the use case is: I want to add a delay in payout, so I have to pass the account Id and order id. Order Id is coming from the PaymentIntents -capture

#

order id is a string.

#

string I mean alphanumeric

lean jolt
#

sorry I still don't understand what you're referring to as an order ID
Please share a PaymentIntent object or a screenshot so that we can be on the same page.

For example;

  "id": "pi_1EUmy6285d61s2cIjF1kga7T",
  "object": "payment_intent",
  "amount": 1099,
  "amount_capturable": 0,
  "amount_details": {
    "tip": {}
  },```

if you're referring to the object ID then it will always be a string
We don't insert anything to object's metadata so if you're seeing a value there then it must be coming from your own code
#

again, concrete examples would help

rigid kernel
#

wait sending

#

const stripe = require('stripe')('sk_test_51J7k95Cd3LRlmO28v32DBPeCbJpjoe2b8YLeayKF1bHmh1nHPOdcTSWPT6q5lOve1uTNfXm8g0Ku0Qu1zxDKH3in007t6jQqsQ');

// To create a requires_capture PaymentIntent, see our guide at: https://stripe.com/docs/payments/capture-later
const paymentIntent = await stripe.paymentIntents.capture(
'pi_3LkReOCd3LRlmO280K696yVD'
);const stripe = require('stripe')('sk_test_51J7k95Cd3LRlmO28v32DBPeCbJpjoe2b8YLeayKF1bHmh1nHPOdcTSWPT6q5lOve1uTNfXm8g0Ku0Qu1zxDKH3in007t6jQqsQ');

// To create a requires_capture PaymentIntent, see our guide at: https://stripe.com/docs/payments/capture-later
const paymentIntent = await stripe.paymentIntents.capture(
'pi_3LkReOCd3LRlmO280K696yVD'
);

#

this code has this output

#

check metadata

#

order_id

#

man its your doc.. both links I provided with details.. still

lean jolt
rigid kernel
#

ok

#

leave thanks.

lean jolt
#

If you look at your request parameters, you're passing the orderID

rigid kernel
#

alright.