diff --git a/api/config/stripe.cfm b/api/config/stripe.cfm index 057daf1..6698e61 100644 --- a/api/config/stripe.cfm +++ b/api/config/stripe.cfm @@ -22,8 +22,8 @@ stripeLiveSecretKey = "sk_live_REPLACE_ME"; stripeLivePublishableKey = "pk_live_REPLACE_ME"; // Webhook secrets -stripeTestWebhookSecret = ""; -stripeLiveWebhookSecret = ""; +stripeTestWebhookSecret = "whsec_TJlxt9GPoUWeObmiWbjy8X5fChjQbJHp"; // dev.payfrit.com (test mode) +stripeLiveWebhookSecret = "whsec_8t6s9Lz0S5M1SYcEYvZ73qFP4zmtlG6h"; // biz.payfrit.com // Select active keys based on mode if (stripeMode == "test") { diff --git a/api/stripe/webhook.cfm b/api/stripe/webhook.cfm index ac18bc3..a16b673 100644 --- a/api/stripe/webhook.cfm +++ b/api/stripe/webhook.cfm @@ -82,6 +82,7 @@ try { UPDATE Orders SET PaymentStatus = 'paid', PaymentCompletedOn = NOW(), + SubmittedOn = COALESCE(SubmittedOn, NOW()), StatusID = CASE WHEN StatusID = 0 THEN 1 ELSE StatusID END WHERE ID = :orderID ", { orderID: orderID });