#vivek mahajan - create subscriptions
1 messages · Page 1 of 1 (latest)
If you set this, it's the lookup_key on the Price object, and you can read some explanation about how we recommend using this here:
https://stripe.com/docs/products-prices/manage-prices?dashboard-or-api=api#lookup-keys
ok let me check
i added product from dashboard
any option to set look up key from dashboard?
No, because this is a dashboard only concept -- there's no use for a lookup key aside from using it when listing prices via the API
ok
getting this error
Fatal error: Uncaught (Status 400) (Request req_e3rEQOQhMSi5u0) No such product: '{{prod_MytKUd96VJLbpR}}'
You've included the {{ }} in the literal value for product id -- you need to remove those
See your request here: https://dashboard.stripe.com/test/logs/req_e3rEQOQhMSi5u0
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You should send product: 'prod_123'
We have lots for different scenarios here: https://stripe.com/docs/testing#cards
but the basic "success" card with no frills is 4242 4242 4242 4242
ok thank you
one question regarding subscription? Need information for steps followed for subscription process
i mean where it shows all steps for subscription
What do you mean? A guide for creating subscriptions?
yes, like create customer, get payment, get customer history etc
also possible to store customer card detail in stripe ?
Do you want to build this yourself, or just prebuilt integration options?
you can start here and choose "custom" flow if you want: https://stripe.com/docs/billing/subscriptions/build-subscriptions
Yes, you will be saving the card payment details on the customer for the future payments
need to mention in code or it save by default?
When conducting your own one time payments you'd use setup_future_usage to control this: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage
But this will be set for you on the payment intent inside the first subscription invoice when following that guide
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.