#Nadiya-subscriptions
1 messages · Page 1 of 1 (latest)
hi there! Could you clarify the question a little bit? The guides for creating subscriptions are at https://stripe.com/docs/billing/subscriptions/build-subscription .
is there any other options instead of checkout sessions?
yes, there's another tab on that page for 'custom code' which is for creating a subscription using payment components on your own page
and it does involve using a PaymentIntent directly. But I would highly recommend you use Checkout instead, it's vastly easier and more simple to get up and running!
well, the clients wants to use their own payment page
so, shouldn't i use the custom code section?
my recommendation is to use Checkout, but you can certainly use the custom code approach, they both work and are options, Checkout is just easier.
this project is a landing page builder, and customers of each user in this site can purchase something.
so the user might want to create a payment page form of his choice
up to you really, you are the developer integrating this! Note that Checkout can be branded(https://stripe.com/docs/payments/checkout/customization) for each Stripe account using it.
in checkout, i'm not yet subscribed to any plan, and only after filling the card details, the subscription will take place right?
but for the custom code, we've to subscribe to a plan before showing the payment form?
right
well I wouldn't phrase it that way, but you do create an "incomplete" subscription object, and then proceed to collect the card details and pay the first invoice, yes
is it a good practise, if i create a subscription object on page load, and then mounting the card using client secret?
what i really meant was.. there is possibility for the users to just opens this page, but not proceeding with card filling and submitting.
so there can be many many subscription object with "incomplete" status
yes that is how our recommended integration works
yep, indeed, but that's just normal and you can ignore the incomplete ones(they expire after 24 hours and get deleted if not completed), but I understand your feedback.
ok, understood.