-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
validateCreditCard No method matching arguments.. #5
Comments
The sdk is not generating the XML properly. This is the way the sdk generates the XML currently.
This is how the XML should be generated.
|
@sahanh If you need a quick workaround to get this working, you can replace the ValidateCrediatCard fucntion with following in the Infusionsoft/API/InvoiceService.php file public function validateCreditCard($CardType, $contactId, $CardNumber, $ExpirationMonth, $ExpirationYear, $CVV2)
{
$data = array(
'CardType' => $CardType,
'ContactId' => $contactId,
'CardNumber' => $CardNumber,
'ExpirationMonth' => $ExpirationMonth,
'ExpirationYear' => $ExpirationYear,
'CVV2' => $CVV2
);
return $this->client->request($this->method(), $data);
} |
This is fixed. The docs are also slightly misleading where it puts the parameters on the same level as the privateKey parameter, even though the second parameter should be a struct (sample request is correct). We should update those docs as well. See: https://developer.infusionsoft.com/docs/read/Invoice_Service#validateCreditCard |
Looks like it's an issue from APIs end, I'm getting the same error from IO docs simulator.
No method matching arguments: java.lang.String, java.lang.String, java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.String
http://d.pr/i/w9Fv
$infusionsoft->invoices->validateCreditCard('Visa', $cid, 'xxxxxxxxxxxxxxxx', '10', '2015', 'xxx');`
gives
Uncaught exception 'Infusionsoft\InfusionsoftException' with message 'No method matching arguments: java.lang.String, java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.String' in /Applications/MAMP/htdocs/infusion_sdk/vendor/infusionsoft/php-sdk/src/Infusionsoft/Infusionsoft.php:359
The text was updated successfully, but these errors were encountered: