#raam-prices

1 messages · Page 1 of 1 (latest)

raw etherBOT
rotund kayak
#

How do you integrate with Stripe currently?

turbid plaza
#

nodejs server

#

is it ok @rotund kayak

rotund kayak
#

Are you using Payment Intent or Checkout Session?

turbid plaza
#

payment intent

rotund kayak
#

Payment Intent doesn't support price and product. Could you share how your flow is like?

#

Or are you using subscription or invoices?

turbid plaza
#

subscription @turbid plaza

#

can we have call?

#

vro

rotund kayak
#

We don't support call on discord

#

We can chat here

turbid plaza
#

it's ok

#

i am using subscription vro

rotund kayak
#

Then display the prices and products according to the response returned

#

raam-prices

turbid plaza
#

i want to show all subscription plans and also in react app,so i want to use those two api calls,and also want to create payment intent while choosing a plan for subscription.

rotund kayak
#

Yup, above suggestion should work. It will list all the prices and their corresponding product details. You can then use the response to display in your frontend for your customer to choose

turbid plaza
#

but i want to get the subscription id too in the frontend @rotund kayak

rotund kayak
#

Subscription ID is only created after the customer chooses the price. Why do you want to display the subscription ID?

turbid plaza
#

yeah,eaxctly that you said,i want to get the subscription id while choosing the price @rotund kayak

rotund kayak
#

So the flow will be like:

  1. Display prices and the product details from the response of List Prices API
  2. Customer chooses the price
  3. Create the subscription based on Step 3 and subscription ID will be returned
  4. Display subscription ID from Step 3
turbid plaza
#

ok @rotund kayak i will work on it ,thanks for your help @rotund kayak

orchid path
#

Stepping in for river. Let me know if you need further help!

turbid plaza
#

some products are getting the default_price field as null?is there any reason for this @orchid path

orchid path
#

Simply because it doesn't have a Price? or have but no Price is marked as default

turbid plaza
#

Ok @orchid path

#

i have an another question

orchid path
#

Sure

turbid plaza
#

while creating a payment intent fro subscription in a page where we can enter all the card details and while clicking the subscribe button,what will happen,is there any sample project with react and node js for my scenario

#

i need what will happen when the subscribe button was clicked

orchid path
#

Are you the one implementing that page? Or are you referring to a specific page?

turbid plaza
#

this was the error i am facing @orchid path

orchid path
#

I think the error is quite clear that you need to call useStripe() in an Elements provider

#

Which Doc are you following?

turbid plaza
orchid path
#

It's important that on the example here, CheckoutForm which is using useStripe() , is nested under Elements

#

This part

#
  return (
    <div className="App">
      {clientSecret && (
        <Elements options={options} stripe={stripePromise}>
          <CheckoutForm />
        </Elements>
      )}
    </div>
  );
turbid plaza
#

so thank full @orchid path