extensions and fixes

This commit is contained in:
Joey Kimsey
2024-12-10 09:00:35 -05:00
parent ab8a8e2c35
commit 2e789998a5
14 changed files with 850 additions and 142 deletions

View File

@ -58,10 +58,9 @@ class Member extends Controller {
$customer = self::$customers->findOrCreate( App::$activeUser->ID );
if ( empty( $customer ) ) {
Session::flash( 'error', 'no customer.' );
Session::flash( 'error', 'You do not have any active payment methods. You can subscribe by going <a href="/member/join/1">here</a>' );
return Redirect::to( 'member/manage' );
}
$session = $stripe->billingPortal->sessions->create([
'customer' => $customer,
'return_url' => Routes::getAddress() . 'member/manage',