Dynamic Payments with Stripe
I"m struggling with Stripe. I'm using PHP and I'm trying to set up a simple store, with no CMS. Wondering how I can pass the amount into charge.php so I can charge different amounts for different products. Here's my code: $charge = Stripe_Charge::create(array( 'customer' => $customer->id, 'amount' => 1900;, 'currency' => 'gbp' )); Here's the code from index.php - I would like to charge the customer whatever is in "data-amount" on the form below. Not quite sure how to do so. <form action="inc/charge.php" method="POST"> <script src="https://checkout.stripe.com/checkout.js" class="stripe-button"