fixing checkout issue.
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user