From 5515b2a717b42d4004ba9b598fc474ad66b50507 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sun, 2 Jun 2019 12:01:55 -0500 Subject: [PATCH] charge id --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 1739364..1204b91 100644 --- a/index.php +++ b/index.php @@ -262,7 +262,7 @@ $router->post('/admin/guest/checkout/{id}', function ($id) { 'currency' => 'usd', 'customer' => $guest->stripe_id, ]); - $guest->checkout_stripe_id = $charge; + $guest->checkout_stripe_id = $charge->id; } $client = new Postmark\PostmarkClient($_SERVER['POSTMARK_API_KEY']);