Hello,
I am integrating ARB with my site. For create an account its working fine and returns Ok in response.
Now for updating that same subscriber id i am getting XMl error
“The ‘AnetApi/xml/v1/schema/AnetApiSchema.xsd:subscriptionId’ element is invalid – The value ” is invalid according to its datatype ‘AnetApi/xml/v1/schema/AnetApiSchema.xsd:numericString’ – The Pattern constraint failed.”
This is my request
$arb = new AuthnetARB($config['logingid'], $config['transkey'], $config['testmode']);
$arb->setParameter(‘subscriptionId’, $subscription_id);
$arb->setParameter(‘cardNumber’, $_POST['ccnumber']);
$arb->setParameter(‘expirationDate’, $_POST['ccexpiry_year'].”-”.$_POST['ccexpiry_month']);
$arb->setParameter(‘email’,$email );
$arb->updateAccount();
$subscription_id is same as it was returned in create account process.
I am using developer test account.
Please kindly help me out of this.
Regards,
Bangash
01-14-2011 03:41 AM
Do you find this subscription in your account when you search for it in your merchant interface? That would be the first place I would verify that the subscription ID I'm using is valid.
Thank you,
Elaine
01-18-2011 04:43 PM
The value ” is invalid
The error string seems to incidicate that one of your variables is an empty string - have you verified that this is not the case?
01-20-2011 07:23 PM
<?xml version="1.0" encoding="utf-8"?>
<createCustomerShippingAddressRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><merchantAuthentication>
<name>5Ct97Jmg2p</name><transactionKey>43f7QCvP5gZ5x6VZ</transactionKey></merchantAuthentication><customerProfileId>11758846</customerProfileId><address><firstName>johno</firstName><lastName>Doeo</lastName><company>John Doe Companyo</company><address>1 Main Streeto</address><city>Bostono</city><state>Mohali</state><zip>02412</zip></address><validationMode>testMode</validationMode></createCustomerShippingAddressRequest>
01-15-2013 01:49 AM
If you read or post the error message
<?xml version="1.0" encoding="utf-8"?><ErrorResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><messages><resultCode>Error</resultCode><message><code>E00003</code><text>The element 'createCustomerShippingAddressRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'validationMode' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.</text></message></messages></ErrorResponse>
You would see that there is no validationMode for createCustomerShippingAddressRequest
the documentation is here
01-15-2013 04:15 AM