Jump to content
  • 0

Not all of the "Pay Now" URL's within some Email Invoices work


turner2f

Question

Not certain if this is a "bug' or maybe a code issue, but...

The 1st invoice notification that gets sent out 2 days before payment is due has a "  Pay Now (No login required) "

When it is clicked it CORRECTLY goes to the  client page where they can make payment

 http://support.mywebsite.com/client/pay/method/4/?sid=O5hzR8%2F2aaZzBt6Tq9s5e1wCaPbbs65s%2F2wIuXgOU8I%3D

================

Whereas the 2nd invoice notification that gets sent out 3 days after payment was due has a "  Pay Now (No login required) "

When it is clicked it goes to the home page .

http://support.mywebsite.com/sub_folder/client/pay/method/4/?sid=O5hzR8%2F2aaZzBt6Tq9s5e1wCaPbbs65s%2F2wIuXgOU8I%3D

================

Here is the HTML SOURCE for the...

1st invoice notification :
 

<p>Hi {contact.first_name},<br />
<br />
This is a reminder that invoice <strong>#{invoice.id_code}</strong> is due on <strong>{invoice.date_due_formatted}</strong>. If you have recently mailed in payment for this invoice, you can ignore this reminder.</p>

<p><a href="http://{payment_url}">Pay Now</a> (No login required)<br />
<br />
Thank you for your continued business!</p>

 

2nd invoice notification :

<p>Hi {contact.first_name},<br />
<br />
This is the <strong>2nd notice</strong> we have sent regarding invoice <strong>#{invoice.id_code}</strong>. It was due on <strong>{invoice.date_due_formatted}</strong> and is now past due. If you have recently mailed in payment for this invoice, you can ignore this email.<br />
<br />
<a href="http://{payment_url}">Pay Now</a> (No login required)</p>


I do not see a difference in the HREF shortlinks for the templates.


================

I already checked out the forum post at...

https://www.blesta.com/forums/index.php?/topic/3945-my-pay-now-no-login-required-link-isnt-working-34-workaround/#comment-29039

But I am not certain this is the same as my issue since one template is working correctly, while the other is not.

===============

Look forward to your assist.
 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

So Blesta is not installed in a sub-directory?

Make sure your "Root Web Directory" path is set correctly, under Settings > System > General > Basic Setup. This should match your document root, the path that is loaded when accessing support.mywebsite.com, regardless if Blesta is installed in a sub-folder or not.

Link to comment
Share on other sites

  • 0

@Paul

Under Settings  >  System  >  General  >  Basic Setup ....

/home/username/support.mywebsite.com/

================

PHYSICALLY, we have the site setup outside of the "public_html" folder ( and inside the main folder is a sub folder ), so that it is accessed with a sub-domain

/home/username/support.mywebsite.com/sub_folder/

================

1) - Is this the issue ?

2) - Why did the "Pay Now" link work fine in one email template, and not in the other ?

Link to comment
Share on other sites

  • 0

1. Yes, I believe that's the issue. The path should include sub_folder/, as it's the full system path to support.mywebsite.com (right?) If you access Blesta via support.mywebsite.com, and not support.mywebsite.com/sub_folder/, then it should include sub_folder/ in the path for this setting.

2. No idea

Link to comment
Share on other sites

  • 0
8 minutes ago, turner2f said:

@Paul

OK.

I will give it a shot, and let you know.

=========

Quick question...

I forgot how to execute the CRON for that email template so I can manually see the results in an email .

How do i do this, again ?

Safest option, set up some services so reminder should be sent out tomorrow, then wait until tomorrow. Tricking the system into running it again today requires removing the record of the run from the cron log today.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...