#zhi-checkout-paymentintent

1 messages · Page 1 of 1 (latest)

echo vine
#

let me have a look

bright wharf
#

I can give me a few more if needed

#

they all have the same problem.

#

can't reverse to find the checkout sessions

echo vine
#

you're making the call on the wrong account

#

the Checkout Session is on a connected account but you're listing on the platform

bright wharf
#

oh, got it

#

tks

#

from the payment intent, can we get the accountid?

trail ingot
#

Hi @bright wharf I'm taking over this thread

bright wharf
#

🙂

trail ingot
#

The PaymentIntent object doesn't have a attribute for accountID.

#

Can you tell me what you want to achieve? so that I can advise a solution accordingly.

bright wharf
#

from the webhook callback, I need to check if the payment intent is coming from checkout session or not

trail ingot
#

If you are using Connect webhook, you can get the account ID from the webhook event.

#

{
"id": "evt_undefined",
"livemode": true,
"object": "event",
"type": "customer.created",
** "account": "acct_ABC",**
"pending_webhooks": 2,
"created": 1349654313,
"data": {...}
}