/home/techb158/immovalet.com/vendor/laravel/cashier/src/Concerns
Edit: /home/techb158/immovalet.com/vendor/laravel/cashier/src/Concerns/InteractsWithPaymentBehavior.php (1368B)
paymentBehavior = StripeSubscription::PAYMENT_BEHAVIOR_ALLOW_INCOMPLETE;
return $this;
}
/**
* Set any subscription change as pending until payment is successful.
*
* @return $this
*/
public function pendingIfPaymentFails()
{
$this->paymentBehavior = StripeSubscription::PAYMENT_BEHAVIOR_PENDING_IF_INCOMPLETE;
return $this;
}
/**
* Prevent any subscription change if payment is unsuccessful.
*
* @return $this
*/
public function errorIfPaymentFails()
{
$this->paymentBehavior = StripeSubscription::PAYMENT_BEHAVIOR_ERROR_IF_INCOMPLETE;
return $this;
}
/**
* Determine the payment behavior when updating the subscription.
*
* @return string
*/
public function paymentBehavior()
{
return $this->paymentBehavior;
}
}