We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d2b2d9 commit 9e00a3aCopy full SHA for 9e00a3a
supabase/functions/stripe-payment-methods/index.ts
@@ -46,7 +46,8 @@ serve(async (req) => {
46
const body = await req.json();
47
48
// Si aucune action spécifiée, c'est un GET via POST (pour compatibilité)
49
- if (!body.action) {
+ if (!body || !body.action || body.action === undefined) {
50
+ console.log('📋 POST sans action - Redirection vers GET');
51
return await handleGetPaymentMethods(stripe, user.email);
52
}
53
0 commit comments