#sadeghiamir_best-practices
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1280398688849625151
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- sadeghiamir_webhooks, 5 days ago, 28 messages
- sadeghiamir_webhooks, 5 days ago, 20 messages
What doesn't work? Could you share the problem you're facing?
my logic is:
SessionCreateParams params =
// SessionCreateParams.builder()
//
// .setCustomer(stripeCustomer.getId())
Session session = Session.create(params);
return session.getUrl()
this have exception
What is the exception?
Can you share the request ID (req_xxx) of the error? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
You must pass either subscription_data or line_items or mode.; request-id: req_aksrqid2gvpFpV
Your request was made for Checkout Session creation: https://dashboard.stripe.com/test/logs/req_aksrqid2gvpFpV, not Customer Portal.
Could you make sure you import the correct class?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
The Session should be from com.stripe.param.billingportal package for SessionCreateParams: https://github.com/stripe/stripe-java/blob/master/src/main/java/com/stripe/param/billingportal/SessionCreateParams.java
Session should be imported from com.stripe.model.billingportal package: https://github.com/stripe/stripe-java/blob/master/src/main/java/com/stripe/model/billingportal/Session.java
would please give me logic for creating customer portal link for managing subscription in java sdk?
Here's the guide about integrating Customer Portal: https://docs.stripe.com/customer-management/integrate-customer-portal?lang=java
I used this document and get above error
Did you import the correct package?
From the request you shared, the classes are imported from the incorrect package
can we do manage billing in embedding mode?
customer portal link use as stripe hosting
Customer Portal can only be done in hosted page, and it doesn't support embedded mode.
Another alternative is to integrate your own UI and use Subscription API directly for any changes on the Subscription:
- Upgrade/downgrade a subscription: https://docs.stripe.com/billing/subscriptions/upgrade-downgrade
- Cancel a subscription: https://docs.stripe.com/billing/subscriptions/cancel
can I use popup for showing embedding checkout?
Embedded Checkout is only for signing up a subscription, or making one-time payment
It's not for managing the subscription
I know , this is other question
It's possible to place the embedded Checkout in the popup modal, but the size might be small for a popup modal. I'd recommend giving a try and whether the UI fits your need
how can we do . put embedding Checkout in popup modal in react js?
This is the guide to integrate embedded Checkout: https://docs.stripe.com/checkout/embedded/quickstart?client=html
To put the embedded Checkout in a popup modal, it's up to your own integration on where to mount the embedded Checkout.
tnx for your helping