#Farhaan_Kaleem-confirm-connect-pi
1 messages ยท Page 1 of 1 (latest)
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
Can we create a CardNumberElement without merchantID, without showing that element anywhere in the UI for creating tokens?
It all depends on what kind of payments you're processing and your Connect setup
This is how you should work with cards/customers on Connect: https://stripe.com/docs/payments/payment-methods/connect
Can we create a CardNumberElement without merchantID, without showing that element anywhere in the UI for creating tokens?
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?
Can we create copy of element?
What is the 'element' in this instance?
I think you're using the wrong terminology and are generally confused
cardNumberElement
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
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?
You pass it when initialising Stripe.js: https://stripe.com/docs/js/initializing#init_stripe_js-options-stripeAccount
yes, but if I need to create token for customer, I dont need stripeAccount, right?
๐ 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
yes agree, but when I am creating the token for platform user, I dont need StripeAccount, right?
yes
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
Hi ๐ I'm jumping in as my teammate needs to step away, please bear with me while I catch up on the context here.
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?