@ -152,7 +152,7 @@ sub do_subscription ($c) {
# Send to stripe to manage the subscription
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 );
}
@ -4,7 +4,7 @@
<div class="row">
<div class="col">
% if ( $person->is_subscribed ) {
% if ( $person->subscription ) {
<h2 style="margin-top: 1.5em; margin-bottom: 1.5em" class="h2">Thank you for subscription!</h2>