diff --git a/index.php b/index.php index c9106b1..79dda96 100644 --- a/index.php +++ b/index.php @@ -235,6 +235,7 @@ $router->post('/admin/guest/checkout/{id}', function ($id) { 'currency' => 'usd', 'customer' => $guest->stripe_id, ]); + $guest->checkout_stripe_id = $charge; } $client = new Postmark\PostmarkClient($_SERVER['POSTMARK_API_KEY']); @@ -254,6 +255,8 @@ $router->post('/admin/guest/checkout/{id}', function ($id) { null //cc ); + R::store($guest); + header('Location: /admin/guest/list/?action=success&msg=Charge created for ' . $guest->name); }