question

rogerthat avatar image
rogerthat asked rogerthat commented

Ecommerce API Token is fine on sandbox, but 401 on client

I am working on using iframe hosted solution with Ecommerce API Token, and it works fine with my sandbox merchant account, but when I switch the public key, private key, and merchant id to the client, and also change the js sdk from

https://checkout.sandbox.dev.clover.com/sdk.js

to

https://checkout.clover.com/sdk.js

I get 401 Unauthorized. Are there any other settings I'm missing? My code is identical.

e-commerce api
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.

parquet76 avatar image parquet76 commented ·
Did the client provide you with the correct keys? Did they possibly mix up private/public?
0 Likes 0 ·
rogerthat avatar image rogerthat parquet76 commented ·
I have access to both accounts, which is why I find it hard to mess something like this up.
0 Likes 0 ·
parquet76 avatar image
parquet76 answered

Hard to say, but you likely have something misconfigured, perhaps the merchantId?

10 |2000

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

rogerthat avatar image
rogerthat answered rogerthat commented

At this point I am waiting to get approved as an app developer and try the PAKMS route, since I'm not getting anywhere at the moment. Our team sent an email to developer-relations@devrel.clover.com on August 7th regarding this issue, and we have yet to hear a response. It would be nice if we could see some log data, or get more information about what is wrong.

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

parquet76 avatar image parquet76 commented ·

Getting approved as a developer and getting an app approved takes months if you are lucky. What call is returning the 401? Does the tokenization within the iframe fail or is it the subsequent charge call?

0 Likes 0 ·
rogerthat avatar image rogerthat parquet76 commented ·
It's the subsequent charge call that returns 401, once I process the action via PHP. The tokenization within the iframe returns no errors.
0 Likes 0 ·
parquet76 avatar image parquet76 rogerthat commented ·
Are you sure you have the correct URL for the charge post? Are you sure you are passing the PRIVATE key and passing it correctly?
0 Likes 0 ·
Show more comments
aniclouds avatar image
aniclouds answered

https://primusrewe.com/ bietet eine innovative und vielfältige Produktpalette, die das Einkaufserlebnis in Europa revolutioniert.


10 |2000

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

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