#NyXa-CustomerPortal
1 messages · Page 1 of 1 (latest)
Ok so ruby mandatory as Stripe is under ruby ?
Not really. You can use any Server side language you want. It doesn't matter what language Stripe is using
Ok sorry i'm not very experimented in this.
np
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());
});
Please remove your key value
Here the customer ID is mentioned, but on ruby, he deleted yes
Already shifted by the real one
the sk_xxx, remove it
this is a public space and it's best not to share even the Test mode key
don't worry, i have already removed it
So i guess i have a problem with the routes i guess
it's mandatory to have a routes file ?
??
For NodeJS right? Yes you would need to. You might want to figure it out how to setup a NodeJS server first then
I'm using shopify so no need to setup a nodeJS server (i hope)
Hi NyXa, can you explain the use case here? How do you want your customers to use the customer portal in shopify?
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
I see, so you want to provide a link to let the customer mange the subscriptions in the customer portal, is it correct?
Yes right
I tried this, but everything in ruby --> https://www.youtube.com/watch?v=u8H6awDJVpM&ab_channel=StripeDevelopers
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
- Official Guide https://stripe.com/docs/billing/subscriptions/integrating-customer-portal
- Demo repo https://github.com/stripe-samples/developer...
Thank you for the confirmation. I am discussing this with my colleagues and will get back to you soon.
Thank you very much 🙏
Hi NyXa. Thank you for waiting. You can refer to the customer portal API doc here by selecting node.js as your preferred language https://stripe.com/docs/api/customer_portal/sessions/create?lang=node
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.