Jump to content

Client custom field in Gateway Module?


viaBowl

Recommended Posts

Is there an easy way to call a client custom field in a gateway module? i've dumped globals and cant see this information anywhere?

 

Here's what I need to do: I am writing a Coinbase gateway module and need to grab a refund address for payments which are made anonymously. This is so I can make the refund process easy within WHMCS.

 

ANy help is appreciated.

Link to comment
Share on other sites

So, using CAPSULE, as in my other thread, I could use...

Use Illuminate \ Database \ Capsule \ Manager as Capsule;
$Data = Capsule::table('tblcustomfieldsvalues') -> where('fieldid', '=', '2' . $Id . '%') -> get();

 

...but I don't know how to format the AND statement i want to use to narrow it down to AND relid = clients-userid;

 

- - - Updated - - -

 

What I've done is add a custom user field for the client to specify a refund address to send bitcoin refunds to. So, the query i want, i suppose, would be:

 

SELECT value FROM tblcustomfieldvsalues WHERE fieldid = 2 AND relid = 3;

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