New subscribe link.

master
Manager Bot 3 years ago
parent 49c6d2e68a
commit 6df9c46589
  1. 2
      Web/lib/MJB/Web/Controller/UserSettings.pm
  2. 2
      Web/templates/user_settings/subscription.html.ep

@ -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 );
} }

@ -4,7 +4,7 @@
<div class="row"> <div class="row">
<div class="col"> <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> <h2 style="margin-top: 1.5em; margin-bottom: 1.5em" class="h2">Thank you for subscription!</h2>
<div class="col"> <div class="col">

Loading…
Cancel
Save