cancel
Showing results for 
Search instead for 
Did you mean: 

Android integration - Where to put the API Login ID & Transaction Key

Hello,

I am currently integrating the Authorize.net SDK on the android platform.
I am able to successfully send my transactions with the test account.
However, I would like to skip the "Login / Password" screen when the transaction

is processed. Note that I am not currently using the  "API Login ID & Transaction Key"

but the login and password of my test account. So the real question is :

 

Where to put the API Login ID & Transaction Key inside the code.

 

        authNetObj = AuthNet
                .getInstance(Environment.PRODUCTION,
                        R.layout.authnet_mobile_merchant_auth_dialog,
                        R.id.authnet_loginid_edit, R.id.authnet_password_edit,
                        R.id.authnet_auth_cancel_button,
                        R.id.authnet_auth_login_button);

//NO  API Login ID & Transaction Key  args ?

         Intent authNetIntent = authNetObj.createAIMAuthCaptureIntent(this,
         refId, totalAmount, creditCard, order, customer, shippingAddress,
         shippingCharges, emailReceipt, merchantDefinedFields);

Thank you

 

 

fabienmp
Member
2 REPLIES 2

For security reasons, it is not recommended to store your login ID and Transaction Key on your mobile device.  Therefore, the SDKs are not designed to support that method of authentication.

Trevor
Administrator Administrator
Administrator

You could, however, theoretically have a web site that acts as an intermediary between the phone and Authorize.net, as in the phone posts securely to the web site and then the web site posts securely to Authorize.net (AIM) and then forwards back the result codes.