PHP code example of mapado / stripe
1. Go to this page and download the library: Download mapado/stripe library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mapado / stripe example snippets
$privateKey = 'pk_.....';
$stripeApi = new \Mapado\Stripe\StripeApi($privateKey);
$invoice = $stripeApi->getInvoice('invoice_id');
$subscription = $invoice->getSubscription();