Replies: 2 comments 2 replies
-
and i added webhook to stripe ( domain/stripe/webhook), configured the needed events and added the webhook key to .env |
Beta Was this translation helpful? Give feedback.
0 replies
-
Did you add the following line to your AppPanelProvider?
If this line is already added, does your cashier installation work besides filament? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
installed Stripe and your package
Business model: use Billable;
AppServiceProvider boot method: Cashier::useCustomerModel(Business::class);
Tanent Panel (AppPanelProvider in my case): ->tenantBillingProvider(new BillingProvider('default'))
bootstrap/app.php: $middleware->validateCsrfTokens(except: ['stripe/*',]);
published Stripe config, added the plans Array to it and changed the default to match the same name of my Strip product
altered the migrations to be on Business table
created 2 products in Stripe as subscriptions
.env :
STRIPE_KEY=
STRIPE_SECRET=
STRIPE_WEBHOOK_SECRET=
CASHIER_STRIPE_SUBSCRIPTION_DEFAULT_PRICE_ID=
what im doing wrong ? any help
i checked the console i found CORS error
https://billing.stripe.com/p/session/test_YWNjdF8xUFJLVWNLdTJ3akpFUGptLF9RbGE4RGdlTzMwQ1dlSnBzdVpFMWxLcVVGT2tiN0ZZ0100DVMpx7tC' (redirected from 'https://domain/app/helozzz/billing') from origin 'https://domain' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled
Beta Was this translation helpful? Give feedback.
All reactions