#hasan
1 messages · Page 1 of 1 (latest)
Can you share a bps_xxx ID?
what is a bps id and where to find it?
It's the ID of a portal session object you're creating
Or are you not creating them via the API, just creating/mutating configurations?
How are you redirecting users to the portal today?
I have a CustomerPortal endpoint on my server side, in it I'm calling the ConfigurationFeaturesOptions to set all needed parameters, and in the same end point I'm using the ConfigurationCreateOptions and SessionCreateOptions. In the latter I'm returning a session.url to the front and redirecting users using this url
Ok, so can you share the bps_xxx ID that is returned by your session creation call?
bps_1MgPZuE2PVITNBans1QBf55x
That session is using this configuration: bpc_1MeGPdE2PVITNBanKkiEO75h, created here: https://dashboard.stripe.com/test/logs/req_s4oRP8rsLHZk2X
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Looks like you set the headline to be Cactus Practice partners with Stripe for simplified billing
although I changed it in mty
in my code*
I think the problem here is that var options2 is not used in the session creation
I'm new to .net and back-end dev in general so there may be beginner mistakes in the code
Hard to say without seeing the code that creates the session
var options3 = new SessionCreateOptions
{
Customer = "cus_xxx",
ReturnUrl = "https://example.com/account",
};
var service = new SessionService();
var session = service.Create(options3);
return Ok(session.Url);
directly after ConfigurationCreateOptions shown in the screen shot above
Well you're not passing the configuration parameter on creation: https://stripe.com/docs/api/customer_portal/sessions/create?lang=dotnet#create_portal_session-configuration
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I see
now I undertand why it didn't work the first time
will try it out, thank you for your time!
np