#falit94_unexpected

1 messages ¡ Page 1 of 1 (latest)

finite umbraBOT
#

👋 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/1219967464410976306

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

fleet craneBOT
woven wharf
#

hi! do you have a screenshot what you see? and the code you wrote to implement the 'checkout page'?

hoary vine
#

yes

#

can I share sensitive info?

woven wharf
#

it's a public channel so redact anything you wouldn't want public

hoary vine
#

ok

#

SessionCreateParams params2 = new SessionCreateParams.Builder()
.setSuccessUrl("successurl")
.setCancelUrl("cancelurl")
.setMode(SessionCreateParams.Mode.SUBSCRIPTION)
.setCustomer(customer.getId())
.addLineItem(new SessionCreateParams.LineItem.Builder()
.setPrice(priceId)
.setAdjustableQuantity(SessionCreateParams.LineItem.AdjustableQuantity.builder().setMinimum(noOfTeams).setEnabled(true).build())
.setQuantity(noOfTeams)
.build()
)
.setTaxIdCollection(
SessionCreateParams.TaxIdCollection.builder()
.setEnabled(true)
.build())
.setCustomerUpdate(SessionCreateParams.CustomerUpdate.builder()
.setName(SessionCreateParams.CustomerUpdate.Name.AUTO)
.setAddress(SessionCreateParams.CustomerUpdate.Address.AUTO)
.build())
.setAllowPromotionCodes(true)

                .build();
woven wharf
hoary vine
#

attaching screenshot

#

not sure if this would help

woven wharf
#

yeah it's what I mentioned

hoary vine
#

ok it's fixed now.. it was due to upsell flag