I try to use https://developer.authorize.net/api/reference/features/acceptjs.html in case of merchant to partner account connection (https://developer.authorize.net/api/reference/features/oauth.html). So I have an application configured in partners account. I do an oauth flow for my second merchant account. The problem is to configure acceptjs. I am able to take merchants public key. But I am not able to take its api client id (Taking it in dashboard is not available because the application has only api access to merchants account. In solution I am trying to make there will be one partner account and unlimited number of merchant accounts).
Solved! Go to Solution.
01-22-2019 03:51 AM
You should be able to call the API getMerchantDetails with the OAuth accessToken of the merchant .
https://developer.authorize.net/api/reference/index.html#transaction-reporting-get-merchant-details
This API will generate if needed and return the publicClientKey of the merchant .
For the API login ID of the merchant you should be able to decode the JWT accessToken and retrieve it from there if needed .
Thanks
Anurag
01-22-2019 11:38 AM
Thank you! Great!
P.s.
- I have made the import:
compile group: 'com.auth0', name: 'java-jwt', version: '3.5.0'
- And got apiClientId:
String additionalInfoString = decodedJWT.getClaims().get("additionalInfo").asString();
AdditionalInfo additionalInfo = objectMapper.reader().forType(AdditionalInfo.class).readValue(additionalInfoString);
String apiClientId = additionalInfo.apiLoginId.trim();
01-23-2019 12:32 AM
You should be able to call the API getMerchantDetails with the OAuth accessToken of the merchant .
https://developer.authorize.net/api/reference/index.html#transaction-reporting-get-merchant-details
This API will generate if needed and return the publicClientKey of the merchant .
For the API login ID of the merchant you should be able to decode the JWT accessToken and retrieve it from there if needed .
Thanks
Anurag
01-22-2019 11:38 AM
Thank you! Great!
P.s.
- I have made the import:
compile group: 'com.auth0', name: 'java-jwt', version: '3.5.0'
- And got apiClientId:
String additionalInfoString = decodedJWT.getClaims().get("additionalInfo").asString();
AdditionalInfo additionalInfo = objectMapper.reader().forType(AdditionalInfo.class).readValue(additionalInfoString);
String apiClientId = additionalInfo.apiLoginId.trim();
01-23-2019 12:32 AM
So I have an ability to connect merchant account to my partner account application. I can process transactions in merchant account. The question is:
Can I configure some application fees for each transaction? If I can, how it can be done (some parameters in api calls)?
01-23-2019 03:53 AM