Stripe Checkout Pages Using PHP | Lon Hosford www.lonhosford.com Charging the Card START SNIPPET #1: // General website data $company_name = "Acme Widgets Inc."; // Order Data $description = "Widgets"; $quantity = 12; $amount = 20.00; SNIPPET #2:
Item: =$description?>
Quantity: =$quantity?>
SNIPPET #3: data-key="=$st_test_public_key?>" data-amount="=$amount * 100?>" data-name="=$company_name?>" data-description="=$quantity . ' ' . $description?>" SNIPPET #4: // View data $url_self = $_SERVER['PHP_SELF']; SNIPPET #5: