cancel
Showing results for 
Search instead for 
Did you mean: 

Acceptjs in case of merchant to partner account connection

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).

timofey_twist
Member
2 ACCEPTED SOLUTIONS

Accepted Solutions

Hi @timofey_twist

 

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





Send feedback at developer_feedback@authorize.net

View solution in original post

Anurag
Moderator Moderator
Moderator

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();

View solution in original post

3 REPLIES 3

Hi @timofey_twist

 

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





Send feedback at developer_feedback@authorize.net
Anurag
Moderator Moderator
Moderator

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();

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)?

timofey_twist
Member