#Farhaan_Kaleem-confirm-connect-pi

1 messages ยท Page 1 of 1 (latest)

vestal ocean
#

Hey, do you have an example PI I can look at (pi_xxx)?

#

You will likely need to clone the customer/PM to the connected account

regal cave
#

Can we create a CardNumberElement without merchantID, without showing that element anywhere in the UI for creating tokens?

vestal ocean
#

It all depends on what kind of payments you're processing and your Connect setup

regal cave
#

Can we create a CardNumberElement without merchantID, without showing that element anywhere in the UI for creating tokens?

vestal ocean
#

That doesn't make sense. You don't create a CardNumberElement โ€“ its a UI component that facilitates collecting payment data from customers

#

What are you actually trying to do?

regal cave
#

Can we create copy of element?

vestal ocean
#

What is the 'element' in this instance?

#

I think you're using the wrong terminology and are generally confused

regal cave
#

cardNumberElement

vestal ocean
#

Why would you need to create a copy of an Elements instance?

#

Can you tell me what it is you're actually trying to do? So I can help guide you

regal cave
#

curl 'https://api.stripe.com/v1/payment_intents/pi_3LRx3bPJQbmTO8cW1MoWR58i/confirm'
-H 'authority: api.stripe.com'
-H 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="96", "Google Chrome";v="96"'
-H 'accept: application/json'
-H 'content-type: application/x-www-form-urlencoded'
-H 'sec-ch-ua-mobile: ?0'
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36'
-H 'sec-ch-ua-platform: "macOS"'
-H 'origin: https://js.stripe.com'
-H 'sec-fetch-site: same-site'
-H 'sec-fetch-mode: cors'
-H 'sec-fetch-dest: empty'
-H 'referer: https://js.stripe.com/'
-H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8'
--data-raw 'expected_payment_method_type=card&use_stripe_sdk=true&key=pk_test_ZbnU0vpCV6NGTLPOFMEm138200rBAvMr20&client_secret=pi_3LRx3bPJQbmTO8cW1MoWR58i_secret_f2m2ov0lkgwwxEj3Ggetkiiw2'
--compressed

#

How can I pass _stripe_account in this?

vestal ocean
regal cave
#

yes, but if I need to create token for customer, I dont need stripeAccount, right?

dapper brook
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

#

the StripeAccount header is used when you're using Connect and you want to create the objects for the connected account

regal cave
#

yes agree, but when I am creating the token for platform user, I dont need StripeAccount, right?

dapper brook
#

yes

regal cave
#

Please refer this video and here you will observe that the first tokens call is generic i.e. platform level.

But when calling confirm, as its not having merchant_Id with it, its failing

native wagon
#

Hi ๐Ÿ‘‹ I'm jumping in as my teammate needs to step away, please bear with me while I catch up on the context here.

native wagon
#

Apologies for the delay while I was reading the thread, it doesn't make sense for your to initialize Stripe Elements for your Platform, and then try to confirm as one of your Connected Accounts. Can you describe what you're trying to accomplish?