- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Integration Authorize.net in android without login merchant credential
Hello, I am integrating android authorize.net sdk using this link.
https://github.com/AuthorizeNet/accept-sample-android/
but i am confusing because in this above code,there is no any option pass amount of that specific transaction.
private EncryptTransactionObject prepareTestTransactionObject() {
ClientKeyBasedMerchantAuthentication merchantAuthentication =
ClientKeyBasedMerchantAuthentication.
createMerchantAuthentication(API_LOGIN_ID, CLIENT_KEY);
// create a transaction object by calling the predefined api for creation
return EncryptTransactionObject.
createTransactionObject(
TransactionType.SDK_TRANSACTION_ENCRYPTION) // type of transaction object
.cardData(prepareTestCardData()) // card data to prepare token
.merchantAuthentication(merchantAuthentication).build();
}
EncryptTransactionObject transactionObject = prepareTransactionObject();
/*
Make a call to get Token API
parameters:
1) EncryptTransactionObject - The transactionObject for the current transaction
2) callback - callback of transaction
*/
apiClient.getTokenWithRequest(transactionObject, this);
how to pass amount of that specific transaction in above code ?
and other android sdk have with login password to autheticate merchant.its too big problem. i want to get merchant authentication using clientId and transaction key.how its possible? can you please provide some solution.
โ08-19-2016 12:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @dipali
With an InApp payment, the first step is to submit the card data and receive a payment nonce, or send a request to Android Pay to obtain an encrypted blog. You would then use either the nonce or the blog in a create transaction request.
http://developer.authorize.net/api/reference/features/in-app.html
Richard
โ08-22-2016 07:51 AM

