Integration with Android, where you enter the API login ID and transaction key in the Authorized.Net SDK

I am currently integrating the Authorize.net SDK on the Android platform. I can successfully send my transactions with a test account. However, I would like to skip the "Login / Password" screen when the transaction is being processed. Please note that I am not currently using the "API Login ID and Transaction Key", but the login and password of my test account. So the real question is:

Paste the API login code and 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); 

// API login ID and key transaction arguments?

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

thanks

+4
source share

Source: https://habr.com/ru/post/1489720/


All Articles