X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar/vendor/laravel/cashier/src
home
/
gfecatvj
/
sites
/
realesbar
/
vendor
/
laravel
/
cashier
/
src
/
📁
..
📄
Billable.php
(432 B)
📄
Cashier.php
(3.44 KB)
📄
CashierServiceProvider.php
(3.35 KB)
📁
Concerns
📁
Events
📁
Exceptions
📁
Http
📄
Invoice.php
(11.72 KB)
📄
InvoiceLineItem.php
(5.6 KB)
📄
Logger.php
(655 B)
📁
Notifications
📄
Payment.php
(3.03 KB)
📄
PaymentMethod.php
(1.78 KB)
📄
Subscription.php
(27.62 KB)
📄
SubscriptionBuilder.php
(9.53 KB)
📄
SubscriptionItem.php
(5.34 KB)
📄
Tax.php
(2.01 KB)
Editing: PaymentMethod.php
<?php namespace Laravel\Cashier; use Laravel\Cashier\Exceptions\InvalidPaymentMethod; use Stripe\PaymentMethod as StripePaymentMethod; class PaymentMethod { /** * The Stripe model instance. * * @var \Illuminate\Database\Eloquent\Model */ protected $owner; /** * The Stripe PaymentMethod instance. * * @var \Stripe\PaymentMethod */ protected $paymentMethod; /** * Create a new PaymentMethod instance. * * @param \Illuminate\Database\Eloquent\Model $owner * @param \Stripe\PaymentMethod $paymentMethod * @return void * * @throws \Laravel\Cashier\Exceptions\InvalidPaymentMethod */ public function __construct($owner, StripePaymentMethod $paymentMethod) { if ($owner->stripe_id !== $paymentMethod->customer) { throw InvalidPaymentMethod::invalidOwner($paymentMethod, $owner); } $this->owner = $owner; $this->paymentMethod = $paymentMethod; } /** * Delete the payment method. * * @return \Stripe\PaymentMethod */ public function delete() { return $this->owner->removePaymentMethod($this->paymentMethod); } /** * Get the Stripe model instance. * * @return \Illuminate\Database\Eloquent\Model */ public function owner() { return $this->owner; } /** * Get the Stripe PaymentMethod instance. * * @return \Stripe\PaymentMethod */ public function asStripePaymentMethod() { return $this->paymentMethod; } /** * Dynamically get values from the Stripe PaymentMethod. * * @param string $key * @return mixed */ public function __get($key) { return $this->paymentMethod->{$key}; } }
Upload File
Create Folder