Prerequisites
- Ensure you have Optimizer enabled for your Razorpay account. This payment provider is available only with Optimizer.
- To ensure a successful integration, you must complete the following items prior to configuration:
- Procure Credentials: Ensure you have an active account with Airpay and possess the necessary API credentials (for example, Merchant ID, Secret Key, Username and Password).
- Whitelisting: Ensure you have whitelisted the necessary URLs/IP addresses to allow traffic from the Optimizer platform. Please contact Airpay for this.
- UPI Collect is not supported by this integration. You must use an alternative provider to accept these payments (Razorpay is available for Optimizer users). Handle UPI Collect transactions.
Handy TipsNo additional configuration is required on your end for Airpay integration.
Add Airpay as Payment Provider
To add Airpay as a payment provider:
- Log in to your Dashboard and select Optimizer.
- Click Payment Provider → Add Provider.
- Navigate to Card, Netbanking, and UPI → Airpay.
- Enter your Provider Details.
- Add your Airpay Production API Details and click Submit.
Configure Custom Rule
Add custom rule to route your transactions via Airpay:
- Log in to your Dashboard and click Optimizer.
- Click + Add New Rule.
- Enter the Rule Name and Rule Description. Click Next.
-
Select the rule conditions and click Next, for example:
- When -
Payment Method. - is -
One Of. Netbanking, Card, UPI Intent.
- When -
- In the Route field, enter 100, and select Airpay in the payment via field. Click Next.
- Click Publish Rule.
Configure Custom Rules for Limitations
You must create routing rules to manage the known limitations of the Airpay integration, routing specific transaction types to an alternative provider.1. Handling UPI Collect Transactions
Airpay integration currently does not support “UPI Collect” requests.Handy TipsCreate a separate rule for UPI Intent transactions to ensure they are routed to Airpay.
Rule to exclude Airpay for UPI Collect payments:
- Log in to your Dashboard and click Optimizer.
- Click + Add New Rule.
- Enter the Rule Name (for example,
Exclude Airpay for UPI Collect) and Rule Description. Click Next. - Select the rule conditions as follows and click Next:
- When -
Payment Method - is -
Equal to UPI Collect
- When -
- In the Route field, enter 100 and select your [Alternative Gateway Provider] in the payment via field. Click Next.
- Click Publish Rule.
2. Handling Card Transactions
Airpay integration does not support Tokenised Card payments.Rule to exclude Airpay for tokenised card payments:
- Log in to your Dashboard and click Optimizer.
- Click + Add New Rule.
- Enter the Rule Name (for example,
Exclude Airpay for Tokenised Cards) and Rule Description. Click Next. - Select the rule conditions as follows:
- Condition 1:
- When -
Payment Method - is -
Equal to Card
- When -
- AND (Add another condition)
- Condition 2:
- When -
Card Tokenised - is -
Equal to True
- When -
- Condition 1:
- Click Next.
- In the Route field, enter 100 and select your [Alternative Gateway Provider] in the payment via field. Click Next.
- Click Publish Rule.