I am using Authorize.net payment gate way for My android Application. Normally Authorize.net ask for username and password by prompting a login screen so I dont want user to type merchant details so I edited authorize.net sdk and typed password directly instead of prompting screen to user for username and password.
Below I have posted the sdk code like I have did it
/**
* Load the login ID and password prompt page.
*/
public void showCredentialsPage() {
showLoggingInDialog();
PasswordAuthentication passAuth = PasswordAuthentication
.createMerchantAuthentication("XXXXXXX",
"XXXXX", deviceId);
_merchant = Merchant.createMerchant(env, passAuth);
new ExecuteTransactionTask().execute();
The problem is for website they use login key and transaction id Which they will get it from sandbox merchant account. If I give that login key and transaction id in the above code it says invalid credentials. If I give username and password directly in my code it works.
This page allows you to view your Application Programming Interface (API) Login ID and to create or disable your Transaction Key. Your API Login ID and Transaction Key are unique pieces of information specifically associated with your payment gateway account.
The Authorize.Net Android SDK enables developers to create mobile Point of Sale application which are held by the merchant, and not on a customer's own mobile device. A Login ID and Password should be used instead of storing sensitive login credentials on the device. It also allows account owners to remotely approve and disable use of specific devices if they are ever lost or stolen.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With