· 6 years ago · Dec 17, 2019, 11:32 AM
1
2Website: <script src="https://js.stripe.com/v3/"></script>
3var stripe = Stripe(stripe_publishable_key,{
4 'stripeAccount' : connected_account_id, // https://stripe.com/docs/stripe-js/reference#stripe-function
5 });
6
7Android: (implementation 'com.stripe:stripe-android:6.1.2')
8 stripe= new Stripe(getBaseContext(),"pk_test_key");
9
10
11I am using latest version of stripe API(2019-12-03).
12
13Main StripeAccount: Stripe1
14Connected Account: Stripe 2
15
16We are using connected accounts. If you see the above website code, if i remove the stripeAccount key the paymentIntent is created in Stripe1 instead Stripe2. But if i add its correctly creating on Stripe2.
17
18In android we are using Token api instead of paymentIntent
19Here while instantiating the stripe event without passing the connected_account_id its creating the token in Stripe2 correctly. Here we are not using PaymentIntent, So the accountId is only needed if we use paymentIntent or is it because we are using older api version and tokens api doesn't need the connected_account_id ?