#M Adil
1 messages · Page 1 of 1 (latest)
Subscriptions create Invoices which take payments through PaymentIntents, so yes subscriptions take payment through payment intents. Is there something specific you are trying to do with them here?
How can we add stripe subscription (Price Table, Create and Manage Subscription) in React Native and Node JS ??
Can you clarify this question a bit? Is there a specific doc that you are looking at here?
I have done with normal payment.
But now I want to implement the subscription based payment, Like in may app there should be 3 pricing and user will select on of them and submit their payment. Something like that
So the pricing table you'll need to build yourself. But you can use the same payment sheet for subscriptions. I know this guide is for web, but the concepts are the same. When creating the subscription, you expand the latest invoice's payment intent and provide that client secret to your payment sheet: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#create-subscription
I got your point.
I want to ask just one thing, So price table will be handle from Stripe Dashboard. Can I get that prices from stripe to map in my mobile app?
console.log("user => ", req.user);
try {
const prices = await stripe.prices.list();
res.json(prices.data.reverse());
} catch (err) {
console.log(err);
}
}``` something like this
Not sure I understand exactly. You can always call list prices on your server: https://stripe.com/docs/api/prices/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
OK thanks a lot,
No problem
Can I ask one more question please?
Sure