Prerequisites
- Create a Razorpay account.
- If you are an existing Razorpay user, please raise a request with our support team to get this feature activated on your Razorpay account.
Integration Steps
To accept payments using Optimizer, follow the steps given below:2
Step 2
3
Step 3
Step 1: Integrate With Razorpay Payment Gateway
You can start accepting payments by integrating your website, app, or ecommerce store with the Razorpay Payment Gateway through any of the integration methods available.Payments API
Payments APIs are used to capture and fetch payments. The payment entity has one extra field with Optimizer to identify the payment provider through which the payment is processed. Given below is the additional response parameter apart from the Payment Entity:gateway_provider
: string The payment provider used to process the payment. Possible values:
payucashfreepaytmpinelabsccavenueingenicobilldesk_optimizer
Payment Success
Webhooks
You can use Webhooks to configure and receive notifications when a specific event occurs. When an event is triggered, we send an HTTP POST payload in JSON to the webhook’s configured URL. You can set up Webhooks from the Dashboard. Given below is the sample payload for webhook events for Optimizer. All the parameters and events will remain the same as shown in the sample payloads for payment webhooks except for one additional parameter,gateway_provider.
Webhook Sample Payload