Jump to content
  • 0
Hal9000

How to show invoicePaymentSuccessAwaitingNotify in viewinvoice.tpl

Question

The viewinvoice.tpl file shows the $LANG.invoicePaymentSuccessAwaitingNotify string if $paymentSuccessAwaitingNotification is true.
Similarly it does for paymentsuccess, pendingreview etc.

I know the other ones can be triggered by setting a URL parameter. But what is the parameter that sets $paymentSuccessAwaitingNotification to true?
I found it nowhere in the documentation.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I could be wrong but I think that it triggers with some gateways when the client returns to the invoice before the callback is complete. In fact the message is the following:

Thank you for completing the payment process. We are awaiting notification to confirm the payment you just made. We will send you an email confirmation as soon as this has been received.

Basically it says «Calm down and don't worry! You have successfully paid the invoice. Just wait few seconds to see the invoice turning to Paid».

Share this post


Link to post
Share on other sites
  • 0

I know, and this is what I want to show. I coded my own gateway module and need to pass the return url to the gateway, but I need to know which parameter to attach to the URL in order to have the message show.

Share this post


Link to post
Share on other sites
  • 0

I just so happened to pay an invoice on whmcs.com via PayPal and I actually got that awaiting notification message.
However the URL shows &paymentsuccess=true and nothing else, so there must be some other criteria that makes that message appear.

Since when adding that variable to viewinvoice.php when the invoice was paid showed the standard paid message, I assume that maybe some variable gets set inside the module_link function if $_GET['paymentsuccess'] is true or something. But which one? Damn...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines