How To Collect Payment Via Razorpay ( INDIAN GATEWAY ) For WhatsApp Native Commerce ?
Razorpay Payment Integration
Generate API Keys: Navigate to the Razorpay Dashboard, navigate to Settings, then API Keys, and generate keys if you have not done so already.
Create Authentication: In your automation builder, add a new authentication using the Razorpay API keys.
Calculate Order Total: Multiply the order total by 100 to convert to the smallest currency unit (e.g., cents), saving this figure in a custom field.
Create Payment Link: Utilize the Razorpay app within your automations builder to create a payment link. Include the multiplied order amount, currency, a brief description, customer details (including email and phone number), and your webhook URL for capturing payment status.
Webhook Setup: Configure a webhook to listen for incoming data, capturing key information such as the order ID and the customer's phone number.
Store and Send Payment Link: Save the generated payment link in a custom field. Craft a message to send this link as a clickable button to your user.
Payment Monitoring: Implement a wait time to allow the user to complete the payment. Afterwards, use a router to verify if the payment was successful.
Order Status Update: If payment is successful, proceed to update the order status on your e-commerce platform and notify the customer with a confirmation message.
Handle Payment Failure: In cases where the payment fails within a specified timeframe (e.g., 5 minutes), incorporate a basic router to assess the payment status. Inform the user via a message that the payment attempt has been unsuccessful.
Payment Retrial: Offer an option for the user to retry payment. On selection, generate a new payment link and dispatch it to the user.
Automation Activation: Make sure to save your configurations and enable the automation workflow to apply the changes.
Automation Workflow Tutorial: This video guide demonstrates the procedure of integrating Razorpay payment links with WhatsApp for seamless payment updates and transactions.
Last updated