#hasan

1 messages · Page 1 of 1 (latest)

solar wyvernBOT
chilly adder
#

Can you share a bps_xxx ID?

low monolith
#

what is a bps id and where to find it?

chilly adder
#

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?

low monolith
#

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

chilly adder
#

Ok, so can you share the bps_xxx ID that is returned by your session creation call?

low monolith
#

bps_1MgPZuE2PVITNBans1QBf55x

chilly adder
#

Looks like you set the headline to be Cactus Practice partners with Stripe for simplified billing

low monolith
#

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

chilly adder
#

Hard to say without seeing the code that creates the session

low monolith
#

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

chilly adder
low monolith
#

I see

#

now I undertand why it didn't work the first time

#

will try it out, thank you for your time!

chilly adder
#

np