#avia
1 messages · Page 1 of 1 (latest)
You may use your own input field to collect email address or LinkAuthenticationElement to collect email address like the example here: https://stripe.com/docs/payments/quickstart
@tiny notch thanks!
but now when I pay for a product I see the Subscriptions= 0 active
(in the server I give him price_id)
in the payment list in the dashboard its looks like this payment success
price = stripe.Price.retrieve(price_code)
intent = stripe.PaymentIntent.create(
amount=price.get("unit_amount"),
currency=price.get("currency")
)
Could you share the subscription ID (sub_xxx)?
I don't have a sub_id.
I have a product and have 2 option
- 20 $per month price id -price_1MxSgqGDtsudHHOYEpZMafPv
2.800$ once price id -price_1MxSgqGDtsudHHOYsHXGo9lR
how do I know that it's paid per month in the dashboard?
If you don't have a subscription ID, where did you see Subscriptions= 0 from? If the subscription is created, you will get the subscription ID
Once the subscription is created, you should be able to see the price items in the Subscription object
This is the price ID, not subscription ID. Can you share what your looking for? If you wish to check what the price in a subscription is paid, you should look for Subscription object.
From https://dashboard.stripe.com/test/subscriptions, you haven't created any subscription yet. If you wish to create a subscription, I'd recommend following the guide here: https://stripe.com/docs/billing/subscriptions/build-subscriptions
I have a general question - if I have a product with recurring for a month -like 20$ *12
Do I have to set a Subscription? or is it's ok to set it in the api :
price = stripe.Price.retrieve(price_id)
intent = stripe.PaymentIntent.create(
amount=price.get("unit_amount"),
currency=price.get("currency")
)
and it will automatically be collecting money per month?