Step 1: Register Crypto.com Pay Account
Sign up for a Crypto.com Pay account, if you don't already have one.
Once you have access to the Crypto.com Pay Merchant Dashboard, You will be able to generate a
secret key
andpublishable key
pair. The API keys can be found inside the Integration > API Keys tab.Navigate to Integration > Webhooks tab. Click the Add Webhook button and then input
https://<your-store-url>/index.php?route=extension/payment/crypto/callback
as the Payload URL, then a signature secret for webhook is generated.
Step 2: Install the extension on OpenCart
Download the Crypto.com Pay extension from the OpenCart Marketplace. If you use OpenCart Cloud, you may also search for the extension in the marketplace and install it.
In to admin panel, click Extensions > Installer, then you can upload the extension zip file in the installer page.
Proceed to Extensions > Extensions and select Payments under Choose the extension type dropdown box. Then, click the Install button to install Crypto.com Pay.
Step 3: Setup Crypto.com Pay on OpenCart
After installing the Crypto.com Pay extension in the Extensions page, you can click Edit button to configure it.
If you are testing with Test Data mode in Crypto.com Pay Merchant dashboard, please select Test under the Environment dropdown box. Otherwise, please select Live.
After that, please fill in
secret key
,publishable key
andwebhook signature secret
on the page using the values you obtained from Step 1.
Note: Please make sure to select Test in API mode if you are testing, and please make sure you input the keys and secrets correctly as they are different between Test mode and Live mode.
Step 4: Verify the flow
At this point, Crypto.com Pay is fully integrated with your OpenCart store. But it is recommended to try the payment flow at least once.
For the convenience of testing, you may enable Test Data mode in Crypto.com Pay Merchant Dashboard. By following Step 1 in Test Data mode, you will be able to obtain another set of secret key,
publishable key
and webhook signature secret
.
After that, please navigate to the OpenCart admin panel, follow Step 3 to input the settings and select Live under Environment. Now you are able to test your store without carrying out an actual transaction.
Refer here for how to complete a test payment.
When Crypto.com Pay approves the payment, the checkout window will indicate that the payment has been approved and your order status will also be updated.