Jump to content

Payment Module and Client's Details


jfreak53

Recommended Posts

I have seen a thread like this many times here, but no one has answered. I am using the 4.5 version of WHMCS. I have installed a BitCoin payment module and it works but it won't grab the customers userid. It is using this code for that ID:

 

$params['clientdetails']['userid']

 

Of course nothing is returned for this line of code. What is the proper code I need to grab the userid for the said user in question?

 

This is again a payment module and everything else works fine with it, it just won't get the userid.

 

I have WHMCS through my server provider free of charge so I am not able to download the developer kit either.

 

Thanks in advance.

Link to comment
Share on other sites

Just do a print_r($params['clientdetails']) and you will see all variables inside the clientdetails array.

 

note: optionally, use $debug = print_r($params['clientdetails'],1); then you will get the array insite $debug var and can make other uses instead print it to the output.

Link to comment
Share on other sites

BitCoin should have a sandbox or test mode.

 

I do not know this gateway. I need to study it further.

 

On the top of my mind, I have a question:

 

Why would you need a user ID, if the invoice is paid by the invoice id itself?

 

If you need help developing / fixing a module for BitCoin, leave me a PM or contact-me through my site contact form.

 

Regards,

Renato

Link to comment
Share on other sites

You can register yourself as a customer and create a new invoice for you (even manually in admin panel). You do not need to pay it to see the parameters included in the button or payment script. Just open the page source in your browser, while in the invoice screen.

Link to comment
Share on other sites

You see that was my original idea personally, why use client ID if the invoice ID is unique and should suffice. Since I didn't develop this module I don't know why the original maker did that. I am going to go ahead and just remove client ID from it and be done.

 

Thanks for the help.

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