I am trying to:
1. Perform an auth with the customer.
2. After getting the auth, create a CIM for them
3. Go back and do a priorauthcapture of that auth into the CIM that was created.
Doesn't work. I cannot do a priorauthcapture thru the created CIM since that auth was not created with that CIM profile. I can do a capture from the CIM but that creates another transaction.
I can do an authcapture then create the CIM but I would like that first transaction to be linked to the CIM
What is the suggested way to handle this scenario.
Thx
Solved! Go to Solution.
07-11-2014 06:00 AM
OK - Got this solved. Below is a snip of the code. The issue was that with .NET you need to set the "ValueModeSpecified" to true otherwise the ValidationMode setting is ignored!! Found that footnote buried in the documentation. After that I got the response.
Now that had its own issues. the other directresponses came in a string that I split into a string array and get the info.
THIS is returned as a string array already BUT.....in reality the whole response string is the is the first item in the array. SO.... I had to to that item AND split that to get the responses.!!!!! There is an 1.5 hrs that isn't billable. ARGGHH!!!
Thanks for the repsonses
customerPaymentProfileType[] cards = new customerPaymentProfileType[1] { card }; createCustomerProfileRequest createCustomerProfileRequest1 = new createCustomerProfileRequest(); createCustomerProfileRequest1.validationModeSpecified = true; createCustomerProfileRequest1.validationMode = validationModeEnum.liveMode; customerProfileType newProfile = new customerProfileType(); newProfile.description = memberCustomerInformationManagerPaymentProfile.Description; newProfile.paymentProfiles = cards; newProfile.merchantCustomerId = memberCustomerInformationManagerPaymentProfile.MemberId.ToString(); newProfile.email = memberCustomerInformationManagerPaymentProfile.Email;
08-09-2014 11:03 AM
If the auth_only wasn't create with CIM, you can't use CIM to pre auth capture, so either use the capture only
or
http://developer.authorize.net/api/reference/
createTransaction search "Capture a previously authorized amount"
07-11-2014 06:17 AM
So I have learned.
My thought was to authorize the customer before I created a CIM so I didn't have stray CIM profiles floating around. I wanted to have all charges appear for the customer in their CIM profile. Suggestion on the best way to handle this are welcome. Thx for the time.
G
07-11-2014 09:28 AM
You can do both, when you create CIM payment profile, you can set the validationmode to livemode, which will generate a auth_only transaction(fyi there will be fee) and it will on create the payment profile if it valid. Then u can decide to delete the customer profile if that fail.
07-11-2014 09:42 AM
Appreciate the input. I was not familiar with the ValidationMode property. I will see if that works well for me. Thx
07-11-2014 12:08 PM
How do I check the response for the auth? Check if there is a CustId #? There is a validationDirectRespnoseList but I get nothing back in the list. I am doing this in the Sandbox? I am trying to;
1. Check auth for CC
2. If good request will create CustomerProfile and payment
3. Check response if good - charge customer
the CIM is created in the Sandbox but the ValidationResponseList is empty
08-08-2014 01:16 PM
can you post code, or tell us which method did you use exactly?
Not sure where is this ValidationResponseList from
08-08-2014 02:00 PM
It gets returned in CreateCustomerCustomerProfileResponse.
It shows being returned like DirectResponse stirng.
Wtih the validationMode to live it supposed to do a checkAuthorize on the customers card. If good it will create the customerProfile otherwise return and error.
Thx for reading
08-08-2014 03:49 PM
It would be helpful if you posted your request and response information.
Richard
08-08-2014 04:00 PM
If it return a DirectResponse, use that, it is the same response as AIM
chapter 4 in http://www.authorize.net/support/AIM_guide.pdf
Or can you post the full response xml or soap.
08-08-2014 04:54 PM