File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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` ,
You can’t perform that action at this time.
0 commit comments