Reply
Member
Posts: 3
Registered: ‎01-24-2013
Accepted Solution

Java API - How to take payments using a customer profile created using Java API?

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?


Accepted Solutions
Solution
Accepted by topic author garybstcg
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Java API - How to take payments using a customer profile created using Java API?

anet_java_sdk-1.4.6.zip\anet_java_sdk\src\test\java\net\authorize\cim\functional_test\CIMTest.java

View solution in original post


All Replies
Solution
Accepted by topic author garybstcg
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Java API - How to take payments using a customer profile created using Java API?

anet_java_sdk-1.4.6.zip\anet_java_sdk\src\test\java\net\authorize\cim\functional_test\CIMTest.java

Member
Posts: 7
Registered: ‎01-15-2013

Re: Java API - How to take payments using a customer profile created using Java API?

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).

Member
Posts: 3
Registered: ‎01-24-2013

Re: Java API - How to take payments using a customer profile created using Java API?

Thanks. Your answer and the previous answer both showed me what I needed.