mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 15:58:38 +01:00
stripe
This commit is contained in:
@@ -29,6 +29,7 @@ export default defineEventHandler(async event => {
|
||||
const checkout = await StripeService.cretePayment(
|
||||
price,
|
||||
'https://dashboard.litlyx.com/payment_ok',
|
||||
project_id,
|
||||
project.customer_id
|
||||
);
|
||||
|
||||
@@ -37,9 +38,6 @@ export default defineEventHandler(async event => {
|
||||
return setResponseStatus(event, 400, 'Cannot create payment');
|
||||
}
|
||||
|
||||
const customer = checkout.customer;
|
||||
await ProjectModel.updateOne({ _id: project_id }, { customer_id: customer });
|
||||
|
||||
return checkout.url;
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user