Created
September 21, 2016 02:58
-
-
Save adamjstevenson/19999132e801efb43a894442ccefd784 to your computer and use it in GitHub Desktop.
Example Stripe PHP config file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Including the library instead of using Composer | |
// Read more about installing this library here: https://github.com/stripe/stripe-php | |
require_once('stripe-php/init.php'); | |
// Replace with your API keys | |
$stripe = array( | |
"secret_key" => "YOUR-SECRET-API-KEY", | |
"publishable_key" => "YOUR-PUBLISHABLE-API-KEY" | |
); | |
// Set the API key for use in your app | |
\Stripe\Stripe::setApiKey($stripe['secret_key']); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment