芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/reginaeigbe.com/folder/admin/tmp/app/Services/PaymentGateway/Stripe.php
client = new StripeClient(Setting::pull('stripe_secret')); } /** * Initialize payment * * @param array $body * @return Session * @throws \Exception */ public function initializePayment(array $body): Session { try { return $this->client->checkout->sessions->create($body); } catch (\Exception $exception){ throw new \Exception($exception->getMessage()); } } public function verifyPayment(string $sessionId) { try { return $this->client->checkout->sessions->retrieve($sessionId, []); }catch (\Exception $exception) { throw new \Exception($exception->getMessage()); } } }