Changes
Co-authored-by: wolfoftyreso-debug <250630591+wolfoftyreso-debug@users.noreply.github.com>
This commit is contained in:
@@ -181,6 +181,16 @@ Deno.serve(async (req) => {
|
|||||||
},
|
},
|
||||||
} as any);
|
} as any);
|
||||||
|
|
||||||
|
await insertOrder({
|
||||||
|
method: "card",
|
||||||
|
b,
|
||||||
|
cleaned,
|
||||||
|
monthlyAmountOre,
|
||||||
|
stripeSessionId: session.id,
|
||||||
|
stripeSubscriptionId: null,
|
||||||
|
stripeCustomerId: customer.id,
|
||||||
|
});
|
||||||
|
|
||||||
return new Response(JSON.stringify({ clientSecret: session.client_secret }), {
|
return new Response(JSON.stringify({ clientSecret: session.client_secret }), {
|
||||||
status: 200,
|
status: 200,
|
||||||
headers: { ...corsHeaders, "Content-Type": "application/json" },
|
headers: { ...corsHeaders, "Content-Type": "application/json" },
|
||||||
|
|||||||
Reference in New Issue
Block a user