Jump to content

"Pay now" button in invoice takes user in loop


Blueberry3.14

Recommended Posts

I've had 2 different clients be unable to pay an invoice from clicking the "pay now" button since upgrading to v3.1.2. Both times I was either online in IM or on the phone with them as they tried. They click "pay now" from the invoice, and it takes them back to their "client area" screen.

 

With the second client, I logged in as client, just to make sure of what she was reporting.

 

I'm going to submit a support ticket, but I thought I'd post here just to see if anyone else is having this problem. I didn't see anything when I searched, but ya never know...I could be missing the obvious.

Link to comment
Share on other sites

I just noticed the same thing here. When clicking the PAY NOW button on the the invoice email, it will take to the Client Area, where client will have to login and access his invoice in order to pay.

 

Shouldn't the PAY NOW button direct him straight to the invoice so he can pay without accessing the Client Area? At least that's how I thought it would work.

Link to comment
Share on other sites

Yes I understand your point... but how will that button work to login a customer automatically?

 

Are you suggesting perhaps submitting the data using that button to a form on the website? i.e using post?

 

Cheers,

Paul

Link to comment
Share on other sites

I'm no programmer, I don't know how that could be achieved. :oops:

I think just directing to the invoice page instead of the Client Area page would be enough. I thought that would be the original idea for the PAY NOW button. :?

Link to comment
Share on other sites

I just noticed the same thing here. When clicking the PAY NOW button on the the invoice email, it will take to the Client Area, where client will have to login and access his invoice in order to pay.

 

Shouldn't the PAY NOW button direct him straight to the invoice so he can pay without accessing the Client Area? At least that's how I thought it would work.

 

My issue is happening after the client is already logged in.

Link to comment
Share on other sites

I'm no programmer, I don't know how that could be achieved. :oops:

I think just directing to the invoice page instead of the Client Area page would be enough. I thought that would be the original idea for the PAY NOW button. :?

For that I'm GUESSING that the username and password would need be sent in the Invoice email. So maybe that's not a good idea for security reasons.

 

Matt may be able to enlighten us though. :D

 

Cheers,

Paul

Link to comment
Share on other sites

This is the link to the invoice itself that goes on the email: http://www.domain.com/whmcs/viewinvoice.php?id=341

 

Client will need to login and then will be redirected straight to the invoice, not to the client's area. Quick and easy.

 

I think PAY NOW button should have the same functionality, right? Otherwise, the client will have to click on it to go to the client's area main page and then click on My Invoices link and finally click on one of the links in the invoice listing. It makes no sense to me. I'd rather not use the PAY NOW button then, just the invoice link itself.

Link to comment
Share on other sites

Here's a thought, why not include your own pay now button, given that the email being sent is html anyway?

 

<form method="post" action="https://www.domain.com/viewinvoice.php?id=[invoiceNo]" name="paymentfrm">

<input type="hidden" name="invoiceid" value="[invoiceNo]">

<input type="submit" value="Pay Now">

</form>

You will need to edit the email template in Code View.

 

Also note that once you save it you won't be able to edit the form text button again. You will have to re-enter the html code again. It's because the WYISWG online editor doesn't like forms within its own form and so will remove the code.

 

I havent tried it myself, so it may not work. (the WYSIWYG editor may remove the code anyway). Let us know if it does work though. :D

 

Cheers,

Paul

Link to comment
Share on other sites

Ok...try this... edit your database using phpMyAdmin.

 

Paste the above into the tblemailtemplates table, for the "Invoice Created" template in the "message" field.

 

Should now do the trick.

Just don't edit that template with WHMCS.

 

Cheers,

Paul

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
Reply to this topic...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated