#vivek mahajan

1 messages · Page 1 of 1 (latest)

tired muskBOT
sharp pelican
#

Hi

runic kiln
#

This should help, doesn't it?

sharp pelican
#

Let me check

#

I am seeing this
$stripe->billingPortal->sessions->create([
'customer' => 'cus_N5h8gfxNCbx35A',
'return_url' => 'https://example.com/account',
]);

#

you mean use this code?

#

also it shows
The default URL to redirect customers to when they click on the portal’s link to return to your website.

#

Does is there option for auto redirect?

runic kiln
#

Yes that code, and yeah I meant that return_url. You set it to your system page

#

It should redirect to your page. You can setup a GET query parameter of customer id

sharp pelican
#

I mean when click on return url, then it'll go to return url not automatic once payment done?

#

Also if there is a new customer and don't have stripe customer id then how to show this portal?

#

it does not show without customer id

runic kiln
#

Return Url is redirected when your customer finished the Customer Portal

#

And no, you can't create a Customer Portal without a Customer Id