Skip to content

Instantly share code, notes, and snippets.

View Emmanue707's full-sized avatar
💭
Wasn't Born a prince but im heading for the crown

Emmanuel Kokele Emmanue707

💭
Wasn't Born a prince but im heading for the crown
View GitHub Profile
@Emmanue707
Emmanue707 / checkout.php
Created July 28, 2024 00:18 — forked from daveh/checkout.php
Simple PHP Stripe Checkout (code to accompany https://youtu.be/1KxD8J8CAFg)
<?php
require __DIR__ . "/vendor/autoload.php";
$stripe_secret_key = "your Stripe secret key here";
\Stripe\Stripe::setApiKey($stripe_secret_key);
$checkout_session = \Stripe\Checkout\Session::create([
"mode" => "payment",