#Zack⚡- Checkout

1 messages · Page 1 of 1 (latest)

uncut niche
#

You don't have to activate your account in test mode

stiff ember
#

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

#
  1. I created a price using the python package
#
price = stripe.Price.create(
  currency="usd",
  unit_amount=120000,
  product_data={"name": "stand up paddleboard"},
)
#
  1. 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)
#
  1. 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.

uncut niche
#

Yes you just need to set you business name in the dashboard settings

stiff ember
#

oh my bad I misread the error didn't see the business name thing

#

thank you