#karuppasamy
1 messages · Page 1 of 1 (latest)
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
Please delete your secret key
Could you please share the Request ID req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
ok
Are you with me?