#amity
1 messages · Page 1 of 1 (latest)
What's the exact error?
There was an issue setting up your call.
Raw response for the API
Status code 404
{
"error": {
"message": "Unrecognized request URL (POST: /v1/billing_portal/sessionsapplication/x-www-form-urlencoded). Please see https://stripe.com/docs or we can help at https://support.stripe.com/.",
"type": "invalid_request_error"
}
}
The URL in your POST request is clearly wrong. Should be /v1/billing_portal/sessions
application/x-www-form-urlencoded needs to be in the request headers:
Content-Type: 'application/x-www-form-urlencoded'```
I tried it. Let me try again
Well the error suggests there's still an issue with your request
it got solved
thank you so much
Do you have any idea on how to create a first time users account via Stripe?
What's a 'first time users account'?
So I am building a SaaS. What if a user directly pays me first and then create an account on my app?
Well you'll probably want a Customer object in Stripe that maps to a user in your app: https://stripe.com/docs/api/customers
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yeah, how will I get the user info? only for successful or active subscription
Well how are you creating the subscriptions?
So it is on the index page. I have mentioned three plans, saver, supreme, and roadster
Ok, but are you using Checkout? Pricing table? Creating a custom flow?
So I have created a payment link for each product and using it when someone clicks on the button which will direct to stripe check out.
However, I have no idea who is the user since the user has not signed up in my web app yet.
Yep, so the Payment Link will create a Customer object as part of the payment flow. I would recomended listening for checkout.session.completed events which fire on successful PL sessions. You can then use the customer field from that event to create a user in your app and link the two.
okay. Will it also work when I use a workflow Subscribe the user?------create a thing(after checking active status of the user)
I'm not sure what you're asking me