#krishna008

1 messages ยท Page 1 of 1 (latest)

cedar cipherBOT
unkempt moth
#

You should create Product and Price via API

brittle quartz
#

I am doing stripe.paymentIntnent.create for one time payment

#

should I replace that one to product plan and subcsription api

unkempt moth
brittle quartz
#

can't I create product then plan then subscription?

#

I want to use it for react.

unkempt moth
#

Yes you create Product and Price first, then create Subscription. Please refer to the Doc above

brittle quartz
#

There are tow 1. Low code 2. Custome code.

#

Which one should I refer.

unkempt moth
#

Custom code

brittle quartz
#

Okay Let me check it.

cedar cipherBOT
brittle quartz
#

To crate product document has mentioned using dashbord or CLI?

#

Isn't there API for create product and Price

snow abyss
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

#
brittle quartz
#

Do I need to use stripe.paymentIntents.create

snow abyss
brittle quartz
#

for client secret

snow abyss
#

yes but your questions are really all over the place

#

like you're asking about subscriptions, then producs and prices and now payment intents

#

I'm not sure what to answer because I'm unsure what you're trying to achieve

brittle quartz
#

I alredy implemented one time payment & now I want to implement recurring.

#

for that do I need to keep my previos code same or render conditionally

#

In one time payment I was using stripe.paymentIntents.create

#

So do I need to keep it same?

snow abyss
#

no you would have to create a subscription first, and then use the underlying latest_invoice.payment_intent to get the secret and continue the flow that already exist for payment if you're using PaymentElement

#

my colleague sent you a doc previously, have you taken the time to look at it?

brittle quartz
#

Yes I checked it but there is not client secret.

snow abyss
brittle quartz
#

After creating subscription there is front end

#

thre is nothing for client secret

snow abyss
#
      subscriptionId: subscription.id,
      clientSecret: subscription.latest_invoice.payment_intent.client_secret,
    });```
#

this is the code that returns the client_secret

#

it's in the donc that I've sent you

#

please read it carefully

brittle quartz
#

ohh sorry it was in response sir.

#

Sir then do I need to use stripe.paymentIntents.create?

snow abyss
#

no you don't

brittle quartz
snow abyss
#

yes

brittle quartz
#

One more thing sir. Can I take application fee in subscription.

snow abyss
#

yes

#

if this is for Connect yes

brittle quartz
#

Okay sir I will read doc.