Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Created April 17, 2019 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasplevy/2b83f7429ddfa9f1f7fc5f627ecee22e to your computer and use it in GitHub Desktop.
Save thomasplevy/2b83f7429ddfa9f1f7fc5f627ecee22e to your computer and use it in GitHub Desktop.
Define Stripe API keys as constants instead of saving them to your sites database (LifterLMS Stripe)
<?php // don't copy this line to your functions.php file!
// Live API Keys.
define( 'LLMS_STRIPE_LIVE_PUBLISHABLE_KEY', 'pk_live_**************' );
define( 'LLMS_STRIPE_LIVE_SECRET_KEY', 'sk_live_**************' );
// Test API Keys.
define( 'LLMS_STRIPE_TEST_PUBLISHABLE_KEY', 'pk_test_**************' );
define( 'LLMS_STRIPE_TEST_SECRET_KEY', 'sk_test_**************' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment