Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera uno-de-piera/file.php Secret
Created Aug 18, 2019

Embed
What would you like to do?
<?php
use Laravel\Cashier\Exceptions\IncompletePayment;
try {
$subscription = $user->newSubscription('default', $planId)->create($paymentMethod);
} catch (IncompletePayment $exception) {
return redirect()->route(
'cashier.payment',
[$exception->payment->id, 'redirect' => route('home')]
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.