cancel
Showing results for 
Search instead for 
Did you mean: 

CIM tutorial and php sample code

Hi

 

 

I've created a donation form for a non profit using php and straight api calls. I'd like to extend it to support CIM so that donor and cc info can be saved and donors don't have to reenter their info.

 

I've downloaded the CIM manual but it is really a reference and does not help me visualize what I need to do to use it. Can someone point me to a step by step tutorial and maybe some sample php code.

 

Also, maybe show me an example hosted cim form. I did not use hosted form for my donation page, but maybe I can use it for CIM?

 

Thanks in advance

xibi
Member
7 REPLIES 7
RaynorC1emen7
Expert

Hello @xibi

 

We're actually starting work on improving our sample code.  You can take a peek as it develops on GitHub: https://github.com/AuthorizeNet/sample-code-php

 

Richard

RichardH
Administrator Administrator
Administrator

Thank you

 

Can I retroactively createCustomerProfileFromTransaction on old transactions dating back as far as two years?

 

How do I go about testing this function. Test transactions return transaction ID of 0000 so obviously that will not work. Can I pass a real transaction ID to the test server?

the sandbox only work with sandbox test account.

get one here

https://developer.authorize.net/sandbox/

 

so no, you can not test with a production/live transaction id.

A Transaction ID of 0 isn't a transaction at all.  Instead, it just validated the credentials and returned OK.

 

If you're in the sandbox, don't set test mode to true and ensure sandbox is not in test mode.

 

Richard

It is not possible to pass a merchant customer ID with a createProfileFromTransaction request, right?

 

How does it determine when I am submitting a duplicate createProfileFromTransaction request. What data fields is it comparing. Is it case sensitive

correct, createCustomerProfileFromTransactionRequest only take one param transactionID.

 

How does it determine when I am submitting a duplicate createProfileFromTransaction request. What data fields is it comparing. Is it case sensitive

http://www.authorize.net/support/CIM_SOAP_guide.pdf

page 89