#NyXa-CustomerPortal

1 messages · Page 1 of 1 (latest)

dull orbit
#

Both should work as server side language

shell lichen
#

Ok so ruby mandatory as Stripe is under ruby ?

dull orbit
#

Not really. You can use any Server side language you want. It doesn't matter what language Stripe is using

shell lichen
#

Ok sorry i'm not very experimented in this.

dull orbit
#

np

shell lichen
#

Because it's much vetter explained with RUby

#

For instance, i created a JS file on Shopify (Server) but the variables dont have the same name

#

Stripe.apiKey = "";

post("/create-customer-portal-session", (request, response) -> {
// Authenticate your user.
SessionCreateParams params = SessionCreateParams.builder()
.setCustomer("{{ CUSTOMER_ID }}")
.setReturnUrl("https://example.com/account")
.build();

Session session = Session.create(params);

response.redirect(session.getUrl());
});

dull orbit
#

Please remove your key value

shell lichen
#

Here the customer ID is mentioned, but on ruby, he deleted yes

shell lichen
dull orbit
#

the sk_xxx, remove it

#

this is a public space and it's best not to share even the Test mode key

shell lichen
#

don't worry, i have already removed it

dull orbit
#

I still see it in the message?

#

I meant, edit the message above

shell lichen
#

AH ok

#

Done

dull orbit
#

okie

#

yeah the code looks normal to me. What's your issue?

shell lichen
#

So i guess i have a problem with the routes i guess

#

it's mandatory to have a routes file ?

shell lichen
#

??

dull orbit
#

For NodeJS right? Yes you would need to. You might want to figure it out how to setup a NodeJS server first then

shell lichen
#

I'm using shopify so no need to setup a nodeJS server (i hope)

devout narwhal
#

Hi NyXa, can you explain the use case here? How do you want your customers to use the customer portal in shopify?

shell lichen
#

At first, thank you for your time
So, Shopify is not managing subscriptions. So i setup everything to have a clear clean customer portal on stripe to handle this
But, as shopify is not managing subscriptions, i need to integrate the stripe customer portal on shopify

devout narwhal
#

I see, so you want to provide a link to let the customer mange the subscriptions in the customer portal, is it correct?

shell lichen
#

Yes right

#

In this edition of Stripe Developer Office Hours, Theodora Chu shares an overview of the Customer Portal and CJ Avilla demonstrates integration into a simple Ruby on Rails application.

Resources

▶ Play video
devout narwhal
#

Thank you for the confirmation. I am discussing this with my colleagues and will get back to you soon.

shell lichen
#

Thank you very much 🙏

devout narwhal