#karuppasamy

1 messages · Page 1 of 1 (latest)

fallow mirageBOT
clear tulip
#

Hi! Let me help you with this.

#

Could you please clarify the question?

rustic flare
#

StripeConfiguration.ApiKey = "sk_test_51NGIk5SIff0BPEP7DXvn4nXFbzaEvNbbv7kWF4meOnj6E8DhaoDfVC8eg40VdsXnr7TTeTcG3fSgwEHHfA1K3o7y00WZQWB9hj";

[HttpPost("create-customer-portal-session")]
public async Task<IActionResult> CustomerPortal()
{
// Authenticate your user.
var options = new SessionCreateOptions
{
Customer = "{{CUSTOMER_ID}}",
ReturnUrl = "https://example.com/account",
};
var service = new SessionService();
var session = service.Create(options);

return Redirect(session.Url);
}

getting error in api

#

doesnot contain return url in SessionCreateOptions

clear tulip
#

Please delete your secret key

rustic flare
#

ok

clear tulip
#

Are you with me?