question

superdave avatar image
superdave asked David Marginian Deactivated commented

Dummy merchant in PRODUCTION DEVELOPER account

I have created a production developer account, and of course it comes with a DUMMY merchant for me to test on.


Do I still run sandbox APIs or use production API to test?

if uses sandbox APIs, whats the different between sandbox merchant and production one?


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

David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated commented

Production and sandbox are separate environments. You need to use the sandbox URLs when testing on sandbox and the production URLs when testing on production. The APIs should be the same.

1 comment
10 |2000

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

David Marginian avatar image David Marginian ♦♦ commented ·

What you are seeing is the correct and expected behavior. What you are incorrect about is your assumption about the code. The code is never used to obtain merchant data. It (along with the app secret etc.) is only used to obtain an access token.

There are two flows. The first flow is when your app is set to TOKEN. This is less secure and the access token is directly in the redirect URL. We recommend that you only use this during testing.

The second flow is the OAuth flow, documentation for which I have previously linked. I recommend you read the documentation. This flow will be used when your application is set to CODE. In this flow the redirect URL contains a code. The code is used along with the app secret to obtain an access token. The access token is then used to make calls to obtain merchant data.

0 Likes 0 ·

Welcome to the
Clover Developer Community