From 5f715ff69fe8c7ffad6ce2b56b2f896a99c94609 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sun, 2 Jun 2019 08:19:35 -0500 Subject: [PATCH] fixing checkout issue. --- index.php | 3 +++ 1 file changed, 3 insertions(+) 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); }