#iamshubhamaratha

1 messages · Page 1 of 1 (latest)

main abyssBOT
hollow raft
#

hi! do you have an example of the kind of "payment id" that you have?

open nexus
#

sub_1LHhuWSEgxQcUzfK7VtZrbHd
pi_3LHiJxSEgxQcUzfK1Nsb5Txw
these two types

hollow raft
open nexus
hollow raft
#

then that PaymentIntent was not associated with a Stripe Customer object.

#

I looked though and it is.

#

you're probably doing this wrong and looking at the PaymentIntent too early.

#

you should be looking at this after the Checkout is complete and are handling the checkout.session.completed event, that's when you can inspect this sort of information and the PaymentIntent will have a customer.

open nexus
#

see we are not saving customer ID in our application but for some reason now we are required the customer Id but we are only saving payment Id of these two types so we need to extract the customer ID using payment id
and the second API URL which you have shared I have to open it and found in the sample object customer is getting null

hollow raft
#

fount in sample object customer is getting null
sure but why does that matter?

#

that's a sample. In your actual PaymentIntents, the value is not null.

open nexus
#

okay, is there a way in which I can check any online tool

hollow raft
#

you can call the API

#

I don't know what you mean by "online tool", you simply call the Stripe API using your API keys and code, the same way you always do when working with Stripe (there's an example .NET snippet of the code to do that, right in the screenshot you posted).

open nexus
#

okay

open nexus
#

Hi is there any URL which we need to used while creating session for customer portal

hollow raft
#

what do you mean exactly?

open nexus
hollow raft