/home/techb158/immovalet.com/vendor/laravel/cashier/src
NameSizeModeActions
Concerns/-0755rm
Console/-0755rm
Events/-0755rm
Exceptions/-0755rm
Http/-0755rm
Notifications/-0755rm
Billable.php4970644editdlrm
Cashier.php53230644editdlrm
CashierServiceProvider.php37150644editdlrm
Checkout.php39330644editdlrm
Coupon.php28370644editdlrm
CustomerBalanceTransaction.php34970644editdlrm
Discount.php18000644editdlrm
Invoice.php169470644editdlrm
InvoiceLineItem.php65620644editdlrm
Logger.php6550644editdlrm
Payment.php55850644editdlrm
PaymentMethod.php25830644editdlrm
Subscription.php354930644editdlrm
SubscriptionBuilder.php121340644editdlrm
SubscriptionItem.php71890644editdlrm
Tax.php20540644editdlrm
Edit: /home/techb158/immovalet.com/vendor/laravel/cashier/src/Checkout.php (3933B)
owner = $owner; $this->session = $session; } /** * Begin a new checkout session. * * @param \Illuminate\Database\Eloquent\Model $owner * @param array $sessionOptions * @param array $customerOptions * @return \Laravel\Cashier\Checkout */ public static function create($owner, array $sessionOptions = [], array $customerOptions = []) { $customer = $owner->createOrGetStripeCustomer($customerOptions); $session = $owner->stripe()->checkout->sessions->create(array_merge([ 'customer' => $customer->id, 'mode' => 'payment', 'success_url' => $sessionOptions['success_url'] ?? route('home').'?checkout=success', 'cancel_url' => $sessionOptions['cancel_url'] ?? route('home').'?checkout=cancelled', 'payment_method_types' => ['card'], ], $sessionOptions)); return new static($owner, $session); } /** * Get the view instance for the button. * * @param string $label * @param array $options * @return \Illuminate\Contracts\View\View * * @deprecated Use the redirect method instead. */ public function button($label = 'Check out', array $options = []) { return View::make('cashier::checkout', array_merge([ 'label' => $label, 'sessionId' => $this->session->id, 'stripeKey' => config('cashier.key'), ], $options)); } /** * Redirect to the checkout session. * * @return \Illuminate\Http\RedirectResponse */ public function redirect() { return Redirect::to($this->session->url, 303); } /** * Create an HTTP response that represents the object. * * @param \Illuminate\Http\Request $request * @return \Symfony\Component\HttpFoundation\Response */ public function toResponse($request) { return $this->redirect(); } /** * Get the Checkout Session as a Stripe Checkout Session object. * * @return \Stripe\Checkout\Session */ public function asStripeCheckoutSession() { return $this->session; } /** * Get the instance as an array. * * @return array */ public function toArray() { return $this->asStripeCheckoutSession()->toArray(); } /** * Convert the object to its JSON representation. * * @param int $options * @return string */ public function toJson($options = 0) { return json_encode($this->jsonSerialize(), $options); } /** * Convert the object into something JSON serializable. * * @return array */ public function jsonSerialize() { return $this->toArray(); } /** * Dynamically get values from the Stripe object. * * @param string $key * @return mixed */ public function __get($key) { return $this->session->{$key}; } }