Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Last active January 25, 2021 17:43
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/c254129a5ee4dc834454f6b74adbb48d to your computer and use it in GitHub Desktop.
Save thomasplevy/c254129a5ee4dc834454f6b74adbb48d to your computer and use it in GitHub Desktop.
Store Authorize.Net API Credentials as constants (in a wp-config.php file, for example) instead of saving them to the WP database (LifterLMS Authorize.Net)
<?php // don't copy this line to your wp-config.php file!
// Sandbox (Test) API Credentails.
define( 'LLMS_AUTH_DOT_NET_TEST_CLIENT_KEY', 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' );
define( 'LLMS_AUTH_DOT_NET_TEST_LOGIN_ID', 'XXXXXXXXX' );
define( 'LLMS_AUTH_DOT_NET_TEST_TRANSACTION_KEY', 'XXXXXXXXXXXX' );
// Production (Live) API Credentails.
define( 'LLMS_AUTH_DOT_NET_LIVE_CLIENT_KEY', 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' );
define( 'LLMS_AUTH_DOT_NET_LIVE_LOGIN_ID', 'XXXXXXXXX' );
define( 'LLMS_AUTH_DOT_NET_LIVE_TRANSACTION_KEY', 'XXXXXXXXXXXX' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment