- Add address list/add/delete/setDefault to public endpoint allowlist - Switch Stripe from test to live mode for production payments Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
44 lines
1.4 KiB
Text
44 lines
1.4 KiB
Text
<cfscript>
|
|
/**
|
|
* Stripe Configuration
|
|
*
|
|
* This file contains Stripe API keys and settings.
|
|
* DO NOT commit this file to version control with live keys!
|
|
*
|
|
* To switch between test/live:
|
|
* - Set stripeMode = "test" or "live"
|
|
* - Keys will be selected automatically
|
|
*/
|
|
|
|
// Mode: "test" or "live"
|
|
stripeMode = "live";
|
|
|
|
// Test keys (safe to commit)
|
|
stripeTestSecretKey = "sk_test_LfbmDduJxTwbVZmvcByYmirw";
|
|
stripeTestPublishableKey = "pk_test_sPBNzSyJ9HcEPJGC7dSo8NqN";
|
|
|
|
// Live keys (DO NOT commit real values)
|
|
stripeLiveSecretKey = "sk_live_REPLACE_ME";
|
|
stripeLivePublishableKey = "pk_live_REPLACE_ME";
|
|
|
|
// Webhook secrets
|
|
stripeTestWebhookSecret = "";
|
|
stripeLiveWebhookSecret = "";
|
|
|
|
// Select active keys based on mode
|
|
if (stripeMode == "test") {
|
|
application.stripeSecretKey = stripeTestSecretKey;
|
|
application.stripePublishableKey = stripeTestPublishableKey;
|
|
application.stripeWebhookSecret = stripeTestWebhookSecret;
|
|
} else {
|
|
application.stripeSecretKey = stripeLiveSecretKey;
|
|
application.stripePublishableKey = stripeLivePublishableKey;
|
|
application.stripeWebhookSecret = stripeLiveWebhookSecret;
|
|
}
|
|
|
|
// Fee Configuration
|
|
application.payfritCustomerFeePercent = 0.05; // 5% customer pays to Payfrit
|
|
application.payfritBusinessFeePercent = 0.05; // 5% business pays to Payfrit
|
|
application.cardFeePercent = 0.029; // 2.9% Stripe fee
|
|
application.cardFeeFixed = 0.30; // $0.30 Stripe fixed fee
|
|
</cfscript>
|