Skip to content

Commit 3e5a189

Browse files
authored
Merge pull request #3455 from Dokploy/3454-subscribe-issue
chore: update dokploy version to v0.26.5 and modify Stripe session cr…
2 parents b965ded + 2b9231d commit 3e5a189

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

apps/dokploy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dokploy",
3-
"version": "v0.26.4",
3+
"version": "v0.26.5",
44
"private": true,
55
"license": "Apache-2.0",
66
"type": "module",

apps/dokploy/server/api/routers/stripe.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,12 @@ export const stripeRouter = createTRPCRouter({
7575
const session = await stripe.checkout.sessions.create({
7676
mode: "subscription",
7777
line_items: items,
78-
...(stripeCustomerId && {
79-
customer: stripeCustomerId,
80-
}),
78+
...(stripeCustomerId
79+
? { customer: stripeCustomerId }
80+
: { customer_email: owner.email }),
8181
metadata: {
8282
adminId: owner.id,
8383
},
84-
customer_email: owner.email,
8584
allow_promotion_codes: true,
8685
success_url: `${WEBSITE_URL}/dashboard/settings/servers?success=true`,
8786
cancel_url: `${WEBSITE_URL}/dashboard/settings/billing`,

0 commit comments

Comments
 (0)