|
|
|
@ -152,7 +152,7 @@ sub do_subscription ($c) { |
|
|
|
|
|
|
|
|
|
|
|
# Send to stripe to manage the subscription |
|
|
|
# Send to stripe to manage the subscription |
|
|
|
sub do_subscription_manage ($c) { |
|
|
|
sub do_subscription_manage ($c) { |
|
|
|
my $url = $c->ua->get( $c->config->{stripe}->{backend} . '/stripe/get-portal-link?customer_id=' . $c->stash->{person}->stripe_customer_id )->result->json->{url}; |
|
|
|
my $url = $c->ua->get( $c->config->{stripe}->{backend} . '/stripe/get-portal-link?customer_id=' . $c->stash->{person}->subscription->stripe_customer_id )->result->json->{url}; |
|
|
|
|
|
|
|
|
|
|
|
$c->redirect_to( $url ); |
|
|
|
$c->redirect_to( $url ); |
|
|
|
} |
|
|
|
} |
|
|
|
|