Click here to Skip to main content
15,896,201 members

Comments by MSameer Asif (Top 2 by date)

MSameer Asif 21-Sep-22 12:38pm View    
https://www.youtube.com/watch?v=FOLRATK4pVA
i used this to create stripe PHP checkout but now I want to try success page but tutorial is in ruby and I want to make this possible in PHP I even asked stripe to provide on tutorial but no response from them infact they even said that some of the doc are not updated so kind of stuck
MSameer Asif 21-Sep-22 12:34pm View    
$app->get('/order-info', function (Request $request, Response $response) {
$session = \Stripe\Checkout\Session::retrieve($request->get('session_id'));
$customer = \Stripe\Customer::retrieve($session->customer);

return $response->withJson([ 'session' => $session->session, 'customer' => $customer->customer]);

});

this the code which I tried and it give error saying slim application error