question

essg avatar image
essg asked parquet76 commented

Is this an "app" that needs approval in Production?

I am a PHP developer that built an in-house order processing system we use for picking, packing and shipping our products. We currently use Clover Virtual Terminal to Charge our B2B repeat customers every month using stored Credit Cards.
I would like to integrate these payments into our in-house order processing system... I first created a sandbox developer account and then a test app and have been able to successfully create a charge against a test credit card to my test merchant account.

How do I get this app to be connected to our production merchant account?

I have created a Clover Production Developer account and a Production APP... but does it really have to have like icons and videos and all that stuff since we are the only ones going to be using it?

AKA does it need to be approved if its just for us?
Thanks.

REST APIe-commerce apiecommerce
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
parquet76 avatar image
parquet76 answered parquet76 commented

What APIs are you using, you can likely just use a merchant token and be done with it.

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

essg avatar image essg commented ·

Thank you for your response!

I must be missing something as I have a Public Token and Private Token from the merchant account... but I don't know how to get it to work. My current testing using my clover developer account goes like this:

Click a link to https://clover.com/oauth/authorize?client_id=XXXXXX. using my APP ID.

After logging in this returns a "client_id" and a "code" via the URL I add in my "client_secret" to these two variables and send it to https://sandbox.dev.clover.com/oauth/token?client_id=XXXXX&client_secret=XXXXXX&code=XXXXXXX

Which returns to me an "access_token" that I use to call https://apisandbox.dev.clover.com/pakms/apikey with Authorization set to Bearer and that access_token.

This returns JSON that gives me an "apiAccessKey".

I use this "apiAccessKey" to call https://token-sandbox.dev.clover.com/v1/tokens. with my credit card information in the post fields and the "apikey:" in the header.

This returns a JSON response with an "id" in it that I then send to https://scl-sandbox.dev.clover.com/v1/charges. with the amount I want to charge. Using post fields like this:

[

"amount" => XXXXXXXX,

"currency" => 'usd',

"source" => (id goes here) XXXXX,

"capture" => true,

];

Then when I log in to my developer merchant account... I see my charge.

The problem is I have no idea how to get this to work in Production with my real Merchant account... creating an "App" seems like the wrong thing to do.

Thank you again for your help so far.

0 Likes 0 ·
parquet76 avatar image parquet76 essg commented ·
You don't need to go through the oath flow, the public key is the PAKMS, you don't need to retrieve it. You will use that when you tokenize. The private key is your access token. You will use that for all other API calls (e.g. making the charge).
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community