In the Java SDK, I could not find an example on how to use the Java API to make a payment using a customer profile. I saw examples in which customer information and card information were sent in a transaction, but not an example that used a customer profile itself. Hopefully, there is a way to do this.
Can someone enlighten me?
Solved! Go to Solution.
01-24-2013 02:02 PM
anet_java_sdk-1.4.6.zip\anet_java_sdk\src\test\java\net\authorize\cim\functional_test\CIMTest.java
01-24-2013 02:04 PM
anet_java_sdk-1.4.6.zip\anet_java_sdk\src\test\java\net\authorize\cim\functional_test\CIMTest.java
01-24-2013 02:04 PM
I just went thru this. It is NOT documented in the CIM pdf. Why NOT?
There is a CustomerGateway (class & interface) in AuthorizeNet.dll that you can instantiate (see the object model). This interface has methods "AuthorizeAndCapture()"...etc. for performing a payment request within CIM and allows you to send the customer & payment profiles. Very easy once you know where to find it! Look in the SDK sample code under the CIM folder for examples of implementing this code (at least in .NET world - CustomerGateway.cs).
01-24-2013 02:23 PM
Thanks. Your answer and the previous answer both showed me what I needed.
01-24-2013 02:26 PM