Introducing Payout Links - Make sending out money to beneficiaries, simple and easy. Improve customer / vendor / partner's experience by making instant payouts in their preferred mode of transaction with preferred processor.
Use cases for Payout links
Corporates - Pay marketing affiliates and reimburse employees.
BFSI (Banking, Financial Services, and Insurance) - Settling insurance claims and paying DSA (Direct Selling Agents) incentives.
Healthcare - Pay field agents, handle reimbursements, and issue refunds.
Travel and Hospitality - Pay commissions to vendors, handle reimbursements and do refunds.
Rental Business - Process Security Deposit Refunds for all rental business like car, housing, furniture and appliances.
Online gaming - Distribute prize money to players.
NGOs & Political Organisations - Reimburse field agents and volunteers.
How to configure Payout links through Hyperswitch API?
Prerequisites
Create a Hyperswitch account via the dashboard and create a profile (read more)
Add a payout processor to your account
Using Payout links
Note: Domain name might vary based on the testing and production environment.
Info: Payout links are secure by nature and should only be opened within an iframe of whitelisted domains in production. For ease of access, these links can be used in a test mode (for non production env) which removes the necessity of configuring whitelisted domains and loading these links within an iframe.
There are a couple of ways for using payout links.
Creating default links
Customizing UI of individual links
Serving links from a custom domain
[TEST MODE] Opening non-iframed links
1. Update business profile with a default payout_link_config by passing the below object in the request body
"payout_link_config": {// (optional) Custom theme color for your payout link.// Can be any html color hex code."theme":"#143F1E",// (optional) Custom logo for your company.// Can be any hosted image URL."logo":"https://hyperswitch.io/favicon.ico",// (optional) Name of your company."merchant_name":"HyperSwitch",// (required in production) A list of domain glob patterns.// This is used as validation when payout link render request is received, and also helps block XSS on client."allowed_domains": ["http://localhost:8080"],// (only available in sandbox) Controls access to payout link.// This is used to control whether or not to validate the access to payout link."payout_test_mode":false}
Note: It is recommended to set payout_test_mode to true for quickly testing the payout links. Alternatively, test_mode can be sent in the individual payout link's create request.
2. Create a default payout link using create payouts endpoint
This creates a default payout link using the payout link config that was configured for the profile. In case payout config is not configured and not passed during create request, a default set of UI config is used.
Each payout link can be configured inidividually during payout creation, by including the payout_link_config object. UI config and access control (test_mode) can be specified during creation. However, domain_name is always configured at a profile level.
Note: This feature is available only in non-production environment. This essentially bypasses the server side and client side validations which are in place for making sure links are only opened within an iframe of a whitelisted domain.
Note: This can be achieved by either setting this behaviour at the business profile level, or can be set in individual link create requests.
Setting at business profile level
Update payout_link_config in business profile to set payout_test_mode
"payout_link_config": {"payout_test_mode":true}
Any new payout links created for this business profile will be accessible through browser's new tab.
Can I create a payout link pointing to my custom domain?
Yes. Your custom domain can be included in the default payout_link_config object as part of the business profile update.
This involves adding CNAME records and TLS certificates which ends up being a slightly complex process. Please reach out to our Support to test this feature out with your custom domain.
What are the benefits of using a Payout link?
Payout links simplify the process of sending money, eliminating the operational complexities of bank transfers or payouts. With just a few clicks, you can create a payout link. Once generated, we notify the recipient, who can redeem the money at their convenience.
How long is the Payout link valid for?
The payout link is valid for 15 minutes by default. However you can increase the validity to upto 3 months (7890000) by passing the time in seconds in session_expiry in the create payout link call.
How can I send Payout links via Emails?
Hyperswitch supports generation of the payout link. We are not integrated with any email servers. You'll need to have a mail server integration at your end and ingest the payout links to the emails being sent.