Skip to content

Instantly share code, notes, and snippets.

@adamjstevenson
Created September 21, 2016 02:58
Show Gist options
  • Save adamjstevenson/19999132e801efb43a894442ccefd784 to your computer and use it in GitHub Desktop.
Save adamjstevenson/19999132e801efb43a894442ccefd784 to your computer and use it in GitHub Desktop.
Example Stripe PHP config file
<?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