#amity

1 messages · Page 1 of 1 (latest)

eager bisonBOT
calm saddle
#

What's the exact error?

neon elbow
#

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"
}
}

Explore our guides and examples to integrate Stripe.

calm saddle
#

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'```
neon elbow
#

I tried it. Let me try again

calm saddle
#

Well the error suggests there's still an issue with your request

neon elbow
#

it got solved

#

thank you so much

#

Do you have any idea on how to create a first time users account via Stripe?

calm saddle
#

What's a 'first time users account'?

neon elbow
#

So I am building a SaaS. What if a user directly pays me first and then create an account on my app?

calm saddle
neon elbow
#

Yeah, how will I get the user info? only for successful or active subscription

calm saddle
#

Well how are you creating the subscriptions?

neon elbow
#

So it is on the index page. I have mentioned three plans, saver, supreme, and roadster

calm saddle
#

Ok, but are you using Checkout? Pricing table? Creating a custom flow?

neon elbow
#

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.

calm saddle
#

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.

neon elbow
#

okay. Will it also work when I use a workflow Subscribe the user?------create a thing(after checking active status of the user)

calm saddle
#

I'm not sure what you're asking me

neon elbow
#

Let me try.

#

Thank you so much for your inputs.

eager bisonBOT