Reply
Contributor
Posts: 16
Registered: ‎05-23-2018
Accepted Solution

Is there a way to verify a public key is correct?

[ Edited ]

I am developing proprietary software for a client that has a simple interface for entering their merchant account info so that throughout the software it can be accessed without altering code. I want my client to be able to click a button that will tell them if the public key they entered is legitimate to prevent typos that would eventually lead to actual transaction errors if not caught upon entry. I'm programming on the back-end and would like a way to hit your API that will allow me to verify that the publishable key entered is legitimate. Currently to achieve that I'm attempting to use Guzzle to hit the sandbox api tokenization method. This is usually something I'd hit using Accept.js but I figured I could use Guzzle to send a JSON request. I've tried to do this without success, whether it is because it is impossible or because I am formatting my request wrong. I'd greatly appreciate help in formatting such a request, or alternatively another method of verifying a public key. I realize there is an authenticate endpoint accessible from PHP SDK on the API Reference ("Test Your Authentication Credentials") however this does not verify the public key.

Thank you for your time.


Accepted Solutions
Highlighted
Solution
Accepted by topic author fivable
‎05-23-2018 07:42 AM
Posts: 2,765
Topics: 57
Kudos: 269
Blog Posts: 67
Registered: ‎12-05-2011

Re: Is there a way to verify a public key is correct?

Hello @fivable

 

The public clientKey is available programmatically through Get Merchant Details API method.

 

Richard

View solution in original post


All Replies
Highlighted
Solution
Accepted by topic author fivable
‎05-23-2018 07:42 AM
Posts: 2,765
Topics: 57
Kudos: 269
Blog Posts: 67
Registered: ‎12-05-2011

Re: Is there a way to verify a public key is correct?

Hello @fivable

 

The public clientKey is available programmatically through Get Merchant Details API method.

 

Richard

Contributor
Posts: 16
Registered: ‎05-23-2018

Re: Is there a way to verify a public key is correct?

Fantastic! Thanks so much

Member
Posts: 4
Registered: ‎05-21-2018

Re: Is there a way to verify a public key is correct?

thanks