#islecavern
1 messages · Page 1 of 1 (latest)
I am getting the error that my domain that redirected to checkout is not enabled in the dashboard
Can you share the exact error message or a screenshot of the error?
XHRPOSThttps://api.stripe.com/v1/payment_pages
[HTTP/2 400 Bad Request 178ms]
Uncaught (in promise) IntegrationError: The domain (<my_domain_url>) that redirected to Checkout is not enabled in the dashboard. Add this domain at https://dashboard.stripe.com/account/checkout/settings.
r https://js.stripe.com/v3/:1
n https://js.stripe.com/v3/:1
r https://js.stripe.com/v3/:1
t https://js.stripe.com/v3/:1
te https://js.stripe.com/v3/:1
_handleMessage https://js.stripe.com/v3/:1
u https://js.stripe.com/v3/:1
_setupPostMessage https://js.stripe.com/v3/:1
addEventListener https://js.stripe.com/v3/:1
_setupPostMessage https://js.stripe.com/v3/:1
e https://js.stripe.com/v3/:1
wa https://js.stripe.com/v3/:1
get https://js.stripe.com/v3/:1
redirectToCheckout https://js.stripe.com/v3/:1
go_to_subscription_link <my_domain_url>/web/js/users/subscription.js:148
<anonymous> <my_domain_url>/web/js/users/subscription.js:7
jQuery 7
<anonymous> <my_domain_url>/web/js/users/subscription.js:6
jQuery 11
v3:1:507937
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
For privacy, I replaced my actual url with <my_domain_url> here
Got it, okay! The custom domain settings under https://dashboard.stripe.com/settings/custom-domains are if you want to use <my_domain_url>/c/... when users are routed to the Checkout Session (instead of checkout.stripe.com/c/...)
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Custom domains for Checkout are for server side integrations only so I suspect that's not what you're looking for
The domains you configure at https://dashboard.stripe.com/settings/checkout (under "CLIENT-ONLY INTEGRATION") are the domains from which you plan on redirecting customers to/from checkout.stripe.com
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
My domain url is already listed in my domains under client-only integration
it is the one and only domain there
Do you have a link to an environment where I can reproduce this error?
Or do you have your Stripe account ID? It should start with acct_
I have a stripe account, but I don't know where to find my stripe account ID
You can find it under https://dashboard.stripe.com/settings/account; it should be in the top right corner
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Taking a step back, I see in your logs that you're also using the server-side Checkout integration. You're creating Checkout Sessions with some backend PHP code. How do you ultimately plan on integrating with Checkout?
my website has login and sign in for mulitple users, and my server has a database that stores the subscription_id and customer_id for each user, and I have a my own server side code triggered by a webhook that makes sure that the subscription_id and customer_id is associated with that in my server's database
I also want to split payments with stripe connect accounts, where say I have 10 stripe connect accounts and 10 promo codes, and depending on what promo code the customer subscribes with, a 10% commission will automatically get diverted each month to a specific stripe connect account along with a 10% discount to the user, but diverting 10% commission automatically to a stripe connect account each month based on a promo code for a subscription is still something I need to figure out how to do, I think using webhooks somehow
Got it. Since you're building a brand-new integration, I recommend building an integration that uses client and server: https://stripe.com/docs/checkout/quickstart
You only need to whitelist domains if you want to redirect your customers to something other checkout.stripe.com to complete the payment
Ok, thank you, I will look through this tommorrow and see what I can figure out. If I get stuck, I may come back here.
oh the problem with this checkout page, is that's fine, but I also need to manage a current subscription, update payment method or cancel subscription of the currently signed in user
It is the stripe.redirectToCheckout function that was giving me that error by the way.