#khan Umair-subscription-with-fee

1 messages · Page 1 of 1 (latest)

lethal yoke
#

Hi đź‘‹ just to clarify, are you asking about including a one-time fee on the first invoice for a subscription?

tall viper
#

yes.. we need first time payment like $299 and then monthly subscription of $99/month

#

in one payment option

lethal yoke
#

Gotcha, yes that's possible. If you're using Checkout Sessions then you would just pass both the recurring price and the non-recurring price in the line_itemsparameter.
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items

If you're creating the subscriptions directly, then you'll pass the one-time fee in via the add_invoice_items parameter:
https://stripe.com/docs/api/subscriptions/create#create_subscription-add_invoice_items

tall viper
#

can you setup this payment option for us?

lethal yoke
#

There are no account changes that need to be made to leverage this functionality. If your integration isn't already taking advantage of it then you will need to update your code to do so.

tall viper
#

What does that mean if our “integration” isn’t already taking advantage of it?

lethal yoke
#

How are you currently integrated with Stripe?

tall viper
#

still not get this

#

we used clickfunnel to get payment from stripe

lethal yoke
#

Ah, so you're using ClickFunnel's Stripe integration then. They control that integration and we're not familiar with how it works. You'll need to reach out to ClickFunnel to see if their Stripe integration supports the behavior you're looking for, and how to implement that behavior if it does.

tall viper
#

ok but we still do subscription in stripe

#

we can do one time payment in clickfunnel but if we want to do a subscription then we have to do that in stripe

#

is there a easy way to do that without coding

lethal yoke
#

How are you currently creating your subscriptions?

tall viper
#

we do in stripe and then there is option in clickfunnel to add that subscription

lethal yoke
#

By "in Stripe", do you mean you're logging into the Stripe dashboard and creating the subscriptions in there?

tall viper
#

yes

lethal yoke
#

In that case you just select multiple products when creating the subscription. One for your recurring subscription price, and one for your one-time fee.

tall viper
#

Does that mean the client has to select 2 different items?

tall viper
#

are you there?

lethal yoke
#

Sorry, not sure who you're referring to by "the client". Whoever is creating the subscription within your dashboard will need to select the two products when creating the subscription. Your customer will still get a single invoice.

tall viper
#

means when someone select the product they have to select one product or there are two one for first time payment and 2nd for monthly subscription

lethal yoke
#

You will need to have two separate Prices, one that is a one-time price and another that is recurring, though you can associate those with the same Product if you wish.

tall viper
#

ok this way customer have to select one payment?

#

they didn't have to select two payments right ..

one for first time and 2nd for per month

lethal yoke
#

Correct, the first invoice will contain both the recurring price and the one-time fee.

austere yewBOT
#

This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact

tall viper
#

ok

#

also it gives me this error

random skiff
#

seems like your price was created in live mode and you're trying to access it in test mode

tall viper
#

look it only deduct $99

random skiff
#

do you have a subscription ID I can take a look at?

tall viper
#

its Jabre Team Consulting

random skiff
#

No that's not it.
Do you have access to stripe account dashboard by any chance?

tall viper
#

yes

random skiff
#

Can you locate the subscription that you're trying to update by going to
https://dashboard.stripe.com/test/subscriptions
and once you click on that subscription, you should see a subscription ID on top right
It should look something like sub_xxxxxxxxxxxx

tall viper
#

price_1KeKOtGUbsyW5RNcMjy9jAIT

#

price_1Ke2jmGUbsyW5RNcjHa8rG9A

#

I see these two

random skiff
#

Those are prices
subscription ID should be under the test mode toggle on the dashboard
Top right corner

tall viper
#

ok just a min

#

sub_1KeLhHGUbsyW5RNc2yYOkss4

opal ferry
#

Hi there! Stepping in for @random skiff as he had to step away. Give me a moment to catch up

#

Can you clarify the question here?

#

The Subscription example you provided looks like it charged $299 on the first invoice and then is set to renew at $99

#

Is this not what you are looking for?

tall viper
#

yes

#

first payment of $299 and then $99/month

opal ferry
#

That looks exactly like what you have going on in that subscription

tall viper
#

yes but it deduct only $99

tall viper
opal ferry
#

That screenshot is your own Dashboard.

#

It is not the Stripe Dashboard

#

So I don't know where that data is being pulled from

tall viper
#

thats where customer purchased the product

opal ferry
#

In that case you will need to debug your code for why it is not showing the expected subscription.

tall viper
#

I just integrated it into clickfunnel

opal ferry
#

The subscription example you provided had its first invoice successfully paid for $299 as you can see in your Stripe Dashboard

tall viper
#

so you are saying the sub is ok in stripe

opal ferry
#

Yes looks fine to me

tall viper
#

ok and for that text mode error

opal ferry
#

You need to make sure you are matching your API key (test mode or live mode) to where the price is being created.

#

Looks like a mismatch based on that error