1. Build Integration
Steps to integrate your WordPress website using the Gravity Forms plugin.
Know how to integrate Curlec Payment Gateway to your WordPress website using the Gravity Forms plugin.
Follow these steps to complete the integration:
- .
- .
- .
Follow the steps given below:
- Download and install the Razorpay Gravity Forms Plugin. You can do this using either of these methods:
- and add the zip file to your WordPress website's Plugins folder.
- Add the plugin directly on your WordPress website from the Plugin page.
- On your WordPress site, activate the plugin in the WordPress Plugin Manager.
- Click Settings.
- Configure the following information and click Update Settings:
- Add in your [KEY_ID] and [KEY_SECRET] generated from the .
- Payment Action: Set this to Authorize and Capture.
- Select the currency in which the payment must be accepted.
- Navigate to Forms → Settings.
- Under General Settings, go to the Currency field and choose the relevant currency.
To create a Gravity Form:
- Navigate to Forms → New Form and click Add New.
- Enter the form title and description in the Create a New Form dialog box.
- Click Create Form.
- Before entering the product details, you must select whether you are selling a subscription or a product/service. Navigate to Settings → Razorpay and configure the Razorpay Feed.
- In the Feed Settings, click Add New.
- Add a name for the feed. For example,
Ooty Green Tea
. - Select
Products and Services
as the Transaction Type. - Click Update Settings.
- Click Edit to start adding product details:
- Click Pricing Fields and select Product.
- Click the form to enter the product details and click Update.
- Field Label: Enter the product name. For example,
Ooty Green Tea
. - Description: Enter a description for the product.
- Field Type: Select field type as required.
- Price: Enter the product price in MYR. For example,
399.99
. - Disable Quantity Field: Do not select this option if your customer wants to choose a quantity.
- Rules: Enable the Required check box to make the quantity field mandatory.
- Field Label: Enter the product name. For example,
- Click Pricing Fields and select Product.
The form is now ready to be added to your web pages.
To add the form on a webpage:
- Click Pages to navigate to the relevant page.
- Add a block and click the form icon.
- Select the form to be added to the page.
- Once the form is added, you can choose to hide the form title and description.
- Click Publish or Update.
Handy Tips
Webhook is auto-configured when you enter and save the API key ID and secret on the plugin settings page. You need to
on your Curlec Dashboard. However, for versions lower than 1.3.2, you need to .You can track the payment status from the Curlec Dashboard or poll our APIs.
- Log in to the and navigate to Transactions → Payments.
- Check if a
payment_ID
has been generated and note the status. In case of a successful payment, the status is marked ascaptured
.
to check the payment status.
Step 2:
Is this integration guide useful?
gravity forms
build integration
installation
payment gateway