#masud
1 messages ยท Page 1 of 1 (latest)
req_myIpFo0JAtYNsM
Thanks! I think you're mixing up your test secret keys / accounts.
oh am i
(Please don't share your keys here)
Account acct_1NDJL5QPjbfkUvss belongs to a different platform
I figured it wouldn't matter since i have the account_id and i'm doing it on their behalf.
So the accounts i wanna do it on behalf of needs to be on the same platform account?
In that case
I'm trying to build a way to eanble people to subscribe to products on behalf of other accounts.
Is it possible to use stripe elements to make this happen?
Yes, that's right
eanble people to subscribe to products on behalf of other accounts
I don't really understand this. Can you share more details about your use case and what you'd like the flow of funds to be?
- I have the connect account_id.
- Connect account has Products (subscriptions and one-off).
- I want to use Stripe Payment Element to take in payments for those Products, which will be sent to the Connect Account. (https://stripe.com/docs/payments/payment-element)
I know that i can create a payment link, but i don't want to do it that way because i want to build the payment into my website using Stripe Payment Element.
Right, gotcha. Since you're using custom accounts, I assume you're working with Destination charges? https://stripe.com/docs/connect/destination-charges
I wasn't, i was using payment intentions.
oh sorry, misread.
I wasn't doing desitnation charges like that. i will try that out.
Question tho: Do the connected accounts need to be on my platform for me to do this? And how do i link a specific product or plan that they're subscribing to?
I recommend starting with that destination charges guide, yes.
Taking a step back, custom accounts are "managed" by a single platform (the platform that created them), so yes, the connected accounts need to be on your platform to do this.
Destination charges are created on your platform, and funds are transferred to the connected accounts. As such, products and prices would need to be created in your platform account
So if i want to be able to do this for stripe accounts that's NOT in my platform, how would i do this?
My first instict is to use oauth to get the secret + publishable keys and then use those keys to create the payment intents.
You can use oauth, yes, but you can only use oauth with Standard and Express accounts. Oauth wouldn't give you those connected accounts' keys, however
Right that makes 100% sense to me.
What about creating a paymentintent linked to a speciic product/plan?
Is that possible, because i didn't see it on the api docs https://stripe.com/docs/api/payment_intents/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Okay, I think it might be helpful to review this, the video at the end in particular: https://stripe.com/docs/payments/tour
PI's are low level objects. A PI has an amount but isn't directly tied to a product or price.