The Razorpay Connector is a reusable OutSystems component that simplifies integrating Razorpay’s payment gateway into your Reactive, Mobile, or Traditional Web applications.It provides ready-to-use server actions for securely creating orders, capturing payments, processing refunds, and validating webhook signatures—without having to manually configure HTTP requests or authentication.
This connector is designed to reduce integration time, ensure secure API communication, and offer a production-ready starting point for any payment functionality in OutSystems applications.
Create Razorpay Orders with amount, currency, and receipt details
Retrieve Order details
Fetch payments linked to an Order
Fetch payment status by Payment ID
Capture an authorized payment
Handle partial and full payment captures
Initiate complete or partial refunds
Fetch refund details
List all refunds for a payment
Validate Razorpay webhook signatures using HMAC SHA256
Prevent tampering and spoofing of payment events
Works for all Razorpay webhook event types
Built-in Basic Authentication using:
Key ID
Key Secret
Runtime configuration through Site Properties
Easy to integrate into any OutSystems app
No platform-specific customization required
Contains all REST integrations and public server actions:
CreateOrder
GetOrder
GetOrderPayments
CapturePayment
GetPayment
Models for:
Order Request / Response
Payment Details
Refund Request / Response
Webhook Payload
Error Handling Objects
Uses Basic Authentication for all Razorpay API calls
Webhook verification uses secure HMAC SHA256
Supports both development and production keys
Detailed error messages for failed verifications
Your application calls CreateOrder, which:
Sends order details to Razorpay
Returns order_id used by Razorpay Checkout
order_id
You display Razorpay’s Checkout widget using the returned order_id.
After checkout completes:
Use GetPayment to validate payment
OR use CapturePayment if auto-capture is disabled
Webhook action:
Receives Razorpay event
Validates the signature
Processes status updates(Example: payment authorized, captured, refunded etc.)
Razorpay Account
Razorpay API Key ID & Secret
Webhook Secret (if using webhooks)
OutSystems 11+ (Reactive/Mobile/Web supported)
Razorpay_KeyId
Razorpay_KeySecret
Razorpay_WebhookSecret
Enable/Disable logging
Currency configuration
Environment mode (Test / Live)
All API calls return:
IsSuccess (Boolean)
IsSuccess
StatusCode
ResponseMessage
Detailed Razorpay error object (if provided)
This ensures easy debugging and graceful handling of payment workflow failures.
Create a test order
Open Razorpay Checkout from OutSystems
Verify payment using Payment ID
View success/failure states
Test webhook signature verification
Perfect for quick onboarding or training teams on Razorpay integration.
E-commerce checkout
Subscription payments
Wallet top-ups
Invoice payment portals
Donation platforms
Booking systems