Customers unable to print invoices
Permalink Browser Info Environment
Hi. My slient runs a subscription yoga website which uses the Stripe add-on. One of her customers has a valid subscription but, when she goes to and clicks "Print invoice", the system reoprts that she doesn't have a subscription. I have made a video of the problem which is available here:https://mindbodymaintenance.com/stripe_invoice_print_fail.mov...
We're using C5J Stripe Subscription v.1.0.1.
Also attached are screen shots of the Members dashboard and Stripe customer details page for this customer showing that she has a valid subscription.
Any idea what the problem is?
Thanks!
We're using C5J Stripe Subscription v.1.0.1.
Also attached are screen shots of the Members dashboard and Stripe customer details page for this customer showing that she has a valid subscription.
Any idea what the problem is?
Thanks!
Type: | Ticket |
---|---|
Status: | On Hold |
Hey. Can't PM you - the link to your profile doesn't work and if I search for your username it isn't found... can you PM me?
Thanks for sending the .har file earlier.
I couldn't find any reason for it to happen.
It's quite impossible to figure it out without debugging.
All I can say is that it's not meeting the following condition
You may write some debug logs there, as follows-
Then collect the logs and cross-checks the results.
I couldn't find any reason for it to happen.
It's quite impossible to figure it out without debugging.
All I can say is that it's not meeting the following condition
// \Concrete\Package\C5jStripe\Controller\SinglePage\Account\Billing::invoice() if ($this->stripeUser->hasStripeId()) { if ($action === 'download') { return $this->stripeUser->downloadInvoice($invoiceId, []); } }
You may write some debug logs there, as follows-
// \Concrete\Package\C5jStripe\Controller\SinglePage\Account\Billing::invoice() public function invoice($invoiceId, $action) { $logger = $this->app->make('log'); $user = $this->app->make('user'); $logger->debug(sprintf('Logged in user ID: %s', $user->getUserID())); $logger->debug(sprintf('Stripe user ID: %s, Stripe ID: %s', $this->stripeUser->getId(), $this->stripeUser->getStripeID())); $logger->debug(sprintf('Has stripe ID? : %s, action: %s', $this->stripeUser->hasStripeId(), $action)); $logger->debug(sprintf('Meets the condition? : %s', $this->stripeUser->hasStripeId() && $action === 'download')); if ($this->stripeUser->hasStripeId()) { if ($action === 'download') { return $this->stripeUser->downloadInvoice($invoiceId, []); } } return RedirectResponse::create(Url::to($this->action('view')));
Viewing 15 lines of 16 lines. View entire code block.
Then collect the logs and cross-checks the results.
Is this happening for a single customer or everyone?
We tried but couldn't reproduce this issue on our environment.
Would you mind to send the .har file (in private)?
BTW, do you have any override of the `\Concrete\Package\C5jStripe\Controller\SinglePage\Account\Billing` controller?
Thanks.