To know how to integrate Curlec Payment Gateway with your Wix website using our payment extension, follow the
.- Create a .
- Understand the process.
- Generate the from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration.
-
You must integrate with Webhooks to receive notifications whenever a payment is made on your website. To setup webhooks:
-
Log in to the
and navigate to Accounts & Settings → Webhooks. -
Click Setup Webhook.
-
Enter the following details:
-
Enter the Website URL as
https://express.razorpay.com/wix/v1/webhook-handler
. -
Enter a Secret for the webhook endpoint. The secret is used for validation purposes.
Note
- It is mandatory to set up a webhook secret. Skipping this can lead to errors.
- The secret can be a combination of letters, numbers and special characters.
- The secret entered here is used to validate that the webhook is from Curlec. Do not expose the secret publicly.
-
Select the following events from the list of Active Events:
order.paid
refund.processed
payment.failed
Handy Tips
If you use this Curlec account to accept payments on your Wix site, you can set up only one webhook on the Curlec Dashboard.
-
-
Click Save to enable webhooks.
-
-
Navigate to your
and switch to editor mode. -
Click Settings → Accept Payments.
-
Click Add Payment Methods.
-
Select Razorpay and click Add. Once added, a success message appears as shown:
-
Razorpay appears added as a payment method. Click Set up Account to Activate.
-
In the dialog box that appears, select the appropriate action:
- If you have not signed up for a Curlec account, click Create an Account and follow the steps mentioned on-screen. Once the account has been created, return to this screen and select Connect Existing Account.
- If you already have an account, click Connect Existing Account and enter your API Key and Secret.
Watch Out!
Do not select the Enable sandbox mode option.
-
Click Connect My Account. A success message appears on screen.
-
Curlec now appears under Payment Methods. Ensure Active on your Checkout is enabled.
This completes your integration.
Follow these integration steps: