#sadeghiamir_best-practices

1 messages · Page 1 of 1 (latest)

hollow vineBOT
#

👋 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.

wooden dirge
#

What doesn't work? Could you share the problem you're facing?

nova thunder
#

my logic is:
SessionCreateParams params =
// SessionCreateParams.builder()
//
// .setCustomer(stripeCustomer.getId())
Session session = Session.create(params);
return session.getUrl()

#

this have exception

wooden dirge
#

What is the exception?

nova thunder
#

You must pass either subscription_data or line_items or mode.; request-id: req_aksrqid2gvpFpV

wooden dirge
nova thunder
#

would please give me logic for creating customer portal link for managing subscription in java sdk?

wooden dirge
nova thunder
wooden dirge
#

Did you import the correct package?

#

From the request you shared, the classes are imported from the incorrect package

nova thunder
#

can we do manage billing in embedding mode?

#

customer portal link use as stripe hosting

wooden dirge
#

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:

Learn how to upgrade and downgrade subscriptions by changing the price.

Learn how to cancel existing subscriptions.

nova thunder
#

can I use popup for showing embedding checkout?

wooden dirge
#

Embedded Checkout is only for signing up a subscription, or making one-time payment

#

It's not for managing the subscription

nova thunder
#

I know , this is other question

wooden dirge
#

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

nova thunder
#

how can we do . put embedding Checkout in popup modal in react js?

wooden dirge
nova thunder
#

tnx for your helping