Reply
Highlighted
Member
Posts: 5
Registered: ‎01-20-2019
Accepted Solution

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


Accepted Solutions
Highlighted
Solution
Accepted by topic author timofey_twist
‎01-23-2019 03:37 AM
Posts: 333
Kudos: 59
Solutions: 36
Registered: ‎03-13-2017

Re: Acceptjs in case of merchant to partner account connection

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

Highlighted
Solution
Accepted by topic author timofey_twist
‎01-23-2019 03:37 AM
Member
Posts: 5
Registered: ‎01-20-2019

Re: Acceptjs in case of merchant to partner account connection

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


All Replies
Highlighted
Solution
Accepted by topic author timofey_twist
‎01-23-2019 03:37 AM
Posts: 333
Kudos: 59
Solutions: 36
Registered: ‎03-13-2017

Re: Acceptjs in case of merchant to partner account connection

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
Highlighted
Solution
Accepted by topic author timofey_twist
‎01-23-2019 03:37 AM
Member
Posts: 5
Registered: ‎01-20-2019

Re: Acceptjs in case of merchant to partner account connection

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

Highlighted
Member
Posts: 5
Registered: ‎01-20-2019

Re: Acceptjs in case of merchant to partner account connection

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