Jump to content

thedangler

Member
  • Posts

    17
  • Joined

  • Last visited

About thedangler

thedangler's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. I'm trying the localAPI and I get the weirdest error message when I try to add a client. Mind you listing clients works fine. $command = "addclient"; $adminuser = "Programmer"; $postfields["firstname"] = "Test"; $postfields["lastname"] = "User"; $postfields["companyname"] = "WHMCS"; $postfields["email"] = "demo@whmcs.com"; $postfields["address1"] = "123 Demo Street"; $postfields["city"] = "Demo"; $postfields["state"] = "Florida"; $postfields["postcode"] = "AB123"; $postfields["country"] = "US"; $postfields["phonenumber"] = "123456789"; $postfields["password2"] = "demo"; $postfields["currency"] = "1"; $results = localAPI($command,$postfields,$adminuser); print_r($results); Array ( [result] => error [message] => You did not enter your first name ) Why is this not working. firstname is obviously set. Anyone? using 5.2
  2. if (file_exists("../init.php")) { require("../init.php"); } else { require("../dbconnect.php"); require("../includes/functions.php"); } require("../includes/gatewayfunctions.php"); require("../includes/invoicefunctions.php"); $clientid = 0; $postfields = array(); $command = "addclient"; $adminuser = "Programmer"; $values["firstname"] = "Test"; $values["lastname"] = "User"; $values["companyname"] = "WHMCS"; $values["email"] = "demo@whmcs.com"; $values["address1"] = "123 Demo Street"; $values["city"] = "Demo"; $values["state"] = "Florida"; $values["postcode"] = "AB123"; $values["country"] = "US"; $values["phonenumber"] = "123456789"; $values["password2"] = "demo"; $values["currency"] = "1"; $results = localAPI($command,$values,$adminuser); print_r($results); exit(); error : You did not enter your first name. WTF? What am I doing wrong?
  3. hello, I found this in the invoice as well, what I am wondering is what is the token name value used for? I see it is not in the example you've provided. When I look at the paypal button inputs there is a token. is that mandatory? What is it for and how do I generate it if it is? Thank you for the response. So I have it working but the IPN seems to not be working. the logs say invalid handshake. maybe this has to do with the Token?
  4. Did you end up generating the link? If so can you show me?
  5. Hello, I'm wondering how the gateway addons use capturepayment API call. is there a specific hook that is being called?
  6. Hello, trying to get the internal API working because the form I want to you is on the same server and actually I placed it in a folder with the same root as modules,admin templates ect. Anyways How do I use the internal API in that location. I included the api.php file but I'm getting a not a valid IP address error. Thanks M
  7. I have one more question. I've done the following.. "save the stripe customer number in the WHMCS client database as the gateway id. After you have stored the gateway id you would then need to call the capture payment api method" Do you mean the stripe customer id? if so I've done everything you said and it only worked after I passed the CC information to the client tbl. We are currently debating to buy your support or StripeXS...
  8. Thank you for the response. I have one more question bothering me. The cart right now makes me fill out all the information the CC information. Then when I click check out it takes me to creditcard.php. I fill in the CC info again and process the order but nothing happens. It remains on creditcard.php with no errors. And I'm slowly loosing my mind. M
  9. Either way, why do you fill out the client and CC information twice? is there a way not to goto creditcard.php?
  10. Hello, I'm using the ajax cart and on the one page I fill out all the information products, addons, client info, and I choose a gateway. If I choose Credit card. a form drops down and I fill out the info. When Im checkout It takes me to another page with all the same information filled in and I have to fill out the CC information again. Why? I'm using StripeXS for the gateway I'm not seeing any errors. And the CC payments never go through. What should I do? Am I supposed to fill all this information out again on /creditcard.php ? Or is the test CC being declined and not telling me.
  11. I want to use the external API to make a new purchase. OR use the cart with Stripe js. Are there any detail instructions on how to do either of these? M
  12. Hello, I'm using the external API to do all the ordering and I was wondering what the steps are to actually making a CC transactions? I want to use Stripe WHMCS Payment Gateway. From my understanding I have to create a client first, update their information with CC then make and invoice, and capture the payment. How does that work with third party gateways like Stripe WHMCS Payment Gateway where it tokenizes the CC data. How does one use the Stripe.js in this process? Documentation on everything is somewhat lacking. Any help would be appreciated.
  13. If I want to use this with the external API how do I do that? Is it possible? M
×
×
  • 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