#Zack⚡- Checkout
1 messages · Page 1 of 1 (latest)
Yes I know, but when I run the code sample in the tutorial it says that I need to an active account
Here is how to reproduce it
- I created a price using the python package
price = stripe.Price.create(
currency="usd",
unit_amount=120000,
product_data={"name": "stand up paddleboard"},
)
- I created a session with the newly created price
try:
checkout_session = stripe.checkout.Session.create(
line_items=[
{
# Provide the exact Price ID (for example, pr_1234) of the product you want to sell
'price': 'price_<redacted>',
'quantity': 1,
},
],
mode='payment',
success_url=YOUR_DOMAIN + '/success.html',
cancel_url=YOUR_DOMAIN + '/cancel.html',
)
return CreateCheckoutSession(redirect_url=checkout_session.url)
- the out put of redirect url
Request req_9SCBRMibXKoZI0: In order to use Checkout, you must set an account or business name at https://dashboard.stripe.com/account.
Yes you just need to set you business name in the dashboard settings