#krishna008

1 messages · Page 1 of 1 (latest)

woeful sandBOT
gleaming lion
#

the customer is created on a Connected Account, so you need to make the API calls like creating a Subsciption, on the same account

next dune
#

const subscription = await stripe.subscriptions.create(
{
customer: customer.id,
items: [{ price: price.id }],
},
{
stripeAccount: bank_info.stripe_account_id,
}
);

#

can i do like above?

gleaming lion
#

seems like it might work, you can test it out and see!

next dune
#

nwo giving No such price: 'price_1NppwlDQ2NISSvOsvJSIhBXz'

gleaming lion
#

yep, same thing, you have to create the Price on the connected account.

#

if you're using Direct Charges like this, all objects(the Price, Product,Subscription,Customer,PaymentMethod) all need to be created on the connected account, using the Stripe-Account header where needed.

next dune
#

Okay sir.

#

StripeInvalidRequestError: This customer has no attached payment source or default payment method. Please consider adding a default payment method.

gleaming lion
#

you should follow the guide and make sure to pass payment_behavior:default_incomplete

next dune
#

Okay sir.

#

Sir, I have to apply applicatin fee

#

whre can I add it?

woeful sandBOT
next dune
#

Hello sir

#

Regarding subscripiton application fee.

#

For first time it is deducted.

#

Will I get it every time.

#

Customers subscription is for 12 months, will I get application fee in my account on each month?

forest vector
#

Yes, the application fee will be deducted from every recurring payment

next dune
#

Okay sir. Thank you so much.

#

Have a great day sir.

forest vector
#

you too!