Accept Payments
Last updated
Last updated
We at Hyperswitch simplify accepting one-time payments by offering a seamless integration process that empowers businesses to start accepting payments in just a few minutes.
This guide provides a step-by-step walkthrough for getting started, configuring payment processors, and integrating payment capabilities into your application.
Sign up for a sandbox account: If you haven’t already, create a sandbox account via the Hyperswitch signup page.
Locate API key: Access your API key from the Settings section in the Control Center.
Set up payment processor: Navigate to the Connectors tab in the Hyperswitch Control Center to configure your preferred payment processor. You’ll need API credentials for the processor.
Use the dummy processors: If credentials are unavailable, you can configure the dummy processors, pre-built into the sandbox environment. These processors help simulate payment flows during integration and provide a risk-free testing environment.
You will use both a server-side and a client-side component of Hyperswitch to complete the integration. The payment flow begins once your user adds products to a shopping cart and wishes to make a payment.
Initiate Payment on Server:
Your server creates a payment request with the Hyperswitch server to obtain a client_secret
.
Render Payment Widget: Your website or app initiates the Hyperswitch SDK, which renders a payment widget for the customer. The widget dynamically displays payment methods based on the customer’s currency and country.
Customer Makes Payment: The customer selects a payment method, provides additional details (e.g., card information), and clicks the Pay button.
Secure Payment Processing: The Hyperswitch SDK securely transmits the payment information to the Hyperswitch server, which processes the payment using the most suitable processor as determined by your smart routing algorithm.
Payment Confirmation: Upon successful payment, the customer is automatically redirected to your payment status confirmation page.
Don’t want to write code? Check out the Hyperswitch Postman Collection for a no-code way to get started with Hyperswitch's API.