Hi,
I got the demo in php from here. (http://developer.authorize.net/downloads/samplecode/) I added my login and TRAN key info. When I tried the demo:
Create Customer Profile - worked
Create Shipping Address - worked
but...
Create Customer Payment Profile = error
The operation failed with the following errors:
[E00027] There is one or more missing or invalid required fields.
Q: anyone know what the error to this basic demo is?
05-09-2014 03:56 PM
check your merchant account settings to see which fields is required.
Settings - Payment Form - Form Fields
compare it to the xml in payment_profile_create.php
05-09-2014 04:03 PM
OK - good idea - WILL DO next - thanks
in the meantime - I changed the format to TEST mode vs Live mode - now it works better.....
So then - after creating the 3 id's successfully I tried to - Create Transaction -
And it said = approved but also = The transaction resulted in an error.
Q: How come it did both? approved & error?
see below...
Create transaction for customerProfileId 26478275, customerPaymentProfileId 24333708, customerShippingAddressId 24864947...
Raw request: <?xml version="1.0" encoding="utf-8"?><createCustomerProfileTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><merchantAuthentication><name>734BRxs69p</name><transactionKey>5Uy97z36KMkS76WX</transactionKey></merchantAuthentication><transaction><profileTransAuthOnly><amount>10.95</amount><shipping><amount>0.00</amount><name>Free Shipping</name><description>Free UPS Ground shipping. Ships in 5-10 days.</description></shipping><lineItems><itemId>123456</itemId><name>name of item sold</name><description>Description of item sold</description><quantity>1</quantity><unitPrice>9.95</unitPrice><taxable>false</taxable></lineItems><lineItems><itemId>456789</itemId><name>name of item sold</name><description>Description of item sold</description><quantity>1</quantity><unitPrice>1.00</unitPrice><taxable>false</taxable></lineItems><customerProfileId>26478275</customerProfileId><customerPaymentProfileId>24333708</customerPaymentProfileId><customerShippingAddressId>24864947</customerShippingAddressId><order><invoiceNumber>INV12345</invoiceNumber></order></profileTransAuthOnly></transaction></createCustomerProfileTransactionRequest>
Raw response: <?xml version="1.0" encoding="utf-8"?><createCustomerProfileTransactionResponse 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>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages><directResponse>|1|,|1|,|1|,|This transaction has been approved.|,|8K0437|,|Y|,|2212771986|,|INV12345|,||,|10.95|,|CC|,|auth_only|,|12345|,|John|,|Doe|,||,||,||,||,||,||,|000-000-0000|,||,|test2@example.com|,|John|,|Smith|,||,||,||,||,||,||,||,||,|0.00|,||,||,|EC5C0BC24E4C34B1C7A344FB9D1F55FC|,||,|2|,||,||,||,||,||,||,||,||,||,||,|XXXX1111|,|Visa|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|24864947|</directResponse></createCustomerProfileTransactionResponse>
A transaction was successfully created for customerProfileId 26478275.
direct response:
|1|,|1|,|1|,|This transaction has been approved.|,|8K0437|,|Y|,|2212771986|,|INV12345|,||,|10.95|,|CC|,|auth_only|,|12345|,|John|,|Doe|,||,||,||,||,||,||,|000-000-0000|,||,|test2@example.com|,|John|,|Smith|,||,||,||,||,||,||,||,||,|0.00|,||,||,|EC5C0BC24E4C34B1C7A344FB9D1F55FC|,||,|2|,||,||,||,||,||,||,||,||,||,||,|XXXX1111|,|Visa|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,|24864947|
The transaction resulted in an error.
responseReasonCode = |1|
responseReasonText = |This transaction has been approved.|
approvalCode = |8K0437|
transId = |2212771986|
Continue
05-09-2014 04:10 PM - edited 05-09-2014 04:10 PM
Hi - so I checked and now in my sanbox account nothing is required...
So I have to ask newbie question... after sanbox login - how can a see my login id to compare with id I used from last year temp php code to make sure it is the same account?
05-09-2014 04:25 PM
ok never mind - i did see it here - API Login ID and Transaction Key
and it is the same ID and no form fields were required
So why the error?
05-09-2014 04:32 PM - edited 05-09-2014 04:32 PM
The only thing I see is that you have the | set as the x_encap_char
The code is in transaction_create.php
05-10-2014 07:46 AM - edited 05-10-2014 07:47 AM