How It Works
- Your customer clicks “Pay” in your app or website.
- Paywint opens its secure checkout page.
- The customer chooses a payment method and completes the process.
- When the payment finishes, Paywint redirects the customer back to the page you chose (your Redirect URL”).
-
Paywint adds two small pieces of information to the web address when sending them back:
id: the unique Paywint payment numberstatus: the result of the payment (success,failed, orrejected)
Example Redirects
After a payment, Paywint might send the customer back to your site like this:id and status at the end of the web address. You can use these values to decide what message to show your customer.
What the Status Means
| Status | What it means for the payment | What you might show your customer |
|---|---|---|
success | The payment went through. | “Payment successful! Thank you for your order.” |
failed | The payment did not go through. | “Something went wrong. Please try again.” |
Some payment methods may initially display a processing status. This means the final result will be available later. In such cases, your system should wait for confirmation—either through a webhook or by checking the payment details in Paywint.
Where to Setup
You decide the page where customers should land after payment. This is called your Redirect URL.Sandbox
Use the Sandbox environment to test your redirect behavior before moving to production.-
Create a Sandbox Account:
Sign up for a Sandbox Account to start testing your integration. -
Get API Key:
Go to the Developer Panel → API Key section to generate your Sandbox API key. -
Configure Redirect URLs:
In the Developer Panel → Redirect/Webhook section, you’ll find fields to enter your test endpoints:- Payment Redirect URL:
The endpoint to which redirects happen when a specific payment action completes.
Example:https://example.com/Redirect/payment
- Payment Redirect URL:
Production
Once your Sandbox testing is complete, you can move to the Production environment. Before enabling your Production setup, please contact our support team to ensure your API and redirect configurations are properly activated.-
Create a Production Account:
Sign up for a Production Account. -
Enable Production Access:
Contact our support team to request activation of your Production API and redirect setup. -
Get API Key:
Go to the Developer Panel → API Keys section to obtain your Production API key. -
Set Your Redirect URL:
In the Developer Panel → Redirect/Webhook section, enter your live redirect endpoint.
Example:https://yourapp.com/checkout/payment -
Support Contacts:
If you need assistance during setup:
- Email: support@paywint.com
- Phone: +1 (408) 461-5543
- Live Chat: Available via the Paywint Dashboard
Why This Matters
- Redirects allow customers to return to your app smoothly after completing a payment.
- You can immediately display a confirmation page showing whether the payment was successful, failed, or rejected.
- To ensure complete accuracy, your system should also verify the final result through Paywint’s webhook or by retrieving the payment details.
Quick Setup
- In Developer Panel → Redirect/Webhook, set your Payment Redirect URL (the page where customers should land after payment).
- Make sure this page can read the
statusandidfrom the web address. - Show your customer the right message based on the result.
