Collect
Accept payments with Notch Pay’s hosted payment page
Notch Pay Collect is a hosted payment page that provides a simple and secure way to accept payments. With minimal integration effort, you can offer your customers a seamless payment experience with support for multiple payment methods.
Overview
Notch Pay Collect handles the entire payment process, including:
- Displaying available payment methods
- Securely collecting payment information
- Processing the payment
- Handling success and failure scenarios
- Redirecting customers back to your website
Benefits of Using Collect
Fastest Integration
Implement payments with minimal code. No need to build your own payment form or handle payment processing logic.
Security
Payment information is collected on Notch Pay’s secure servers, reducing your PCI compliance burden.
Multiple Payment Methods
Support for various payment methods including Mobile Money and digital wallets like Assoh.
Responsive Design
Works seamlessly on desktop and mobile devices with a responsive, user-friendly interface.
Integration Steps
1. Create a Payment
To use Notch Pay Collect, first create a payment using the API:
2. Redirect to Collect
After creating a payment, you’ll receive an authorization_url
in the response. Redirect your customer to this URL to complete the payment:
3. Handle the Callback
When the payment is completed (or fails), Notch Pay will redirect the customer back to your callback
URL with the payment reference:
You should verify the payment status by calling the API:
Customization Options
Notch Pay Collect can be customized to match your brand and requirements:
Basic Customization
When creating a payment, you can specify:
title
: Custom title for the collect pagedescription
: Detailed description of what the customer is paying forcallback
: URL to redirect after payment completion
Payment Method Restrictions
You can restrict the available payment methods:
locked_channel
: Restrict to a specific payment channellocked_country
: Restrict to payment methods from a specific countrylocked_currency
: Restrict to a specific currency
Advanced Customization
For more advanced customization, you can set up a custom collect page in your Notch Pay dashboard:
- Go to Settings > Collect
- Click “Create Custom Collect”
- Customize colors, fonts, and layout
- Save your custom collect template
Then, when creating a payment, specify the template ID:
Payment Statuses
When processing payments through Collect, it’s important to understand the various transaction statuses:
Status | State | Description |
---|---|---|
pending | Transitional | Transaction has been initiated and awaits customer completion on the hosted page or direct api. |
processing | Transitional | Customer initiated the payment process, but it has not been completed yet. |
incomplete | Transitional | Customer pay less than payment amount. |
canceled | Final | Transaction has been cancelled. This status is final. |
failed | Final | Transaction has failed. This status is final. |
rejected | Final | Transaction has been rejected by our system or by operator. This status is final. |
abandoned | Final | Customer abandoned the payment on our hosted page. This status is final. |
expired | Final | Transaction has expired after 3 hours. This status is final. |
complete | Mixed | Transaction has been successfully completed. This status is final but can be refunded. |
refunded | Final | Transaction has been successfully refunded to customer. This status is final. |
partialy-refunded | Final | Transaction has been partialy refunded to customer. This status is final. |
Collect Flow
The Notch Pay Collect flow consists of the following steps:
- Payment Information: The customer sees the payment amount, description, and your business information
- Payment Method Selection: The customer selects their preferred payment method
- Payment Details: The customer enters their payment details (e.g., mobile money number)
- Confirmation: The customer confirms the payment
- Processing: Notch Pay processes the payment with the selected provider
- Result: The customer sees the payment result (success or failure)
- Redirect: The customer is redirected back to your website
Testing Collect
To test the collect flow:
- Switch to Test Mode in your dashboard
- Create a test payment using your test API key
- Use test payment methods to simulate different scenarios
- Verify that your callback handling works correctly
Best Practices
- Pre-fill Customer Information: Provide customer details when creating the payment to streamline the collect process
- Clear Descriptions: Use clear and concise descriptions so customers know what they’re paying for
- Responsive Design: Ensure your website is responsive, as many customers will complete payment on mobile devices
- Error Handling: Implement proper error handling for cases where customers abandon payment or payments fail
- Webhooks: Set up webhooks for reliable payment notifications, as some customers may not return to your callback URL
Troubleshooting
Common Issues
- Redirect Not Working: Ensure your callback URL is properly URL-encoded and accessible
- Payment Not Showing: Verify that you’re using the correct API key and that the payment was created successfully
- Customization Not Applied: Check that your logo URL is publicly accessible and that custom parameters are correctly formatted
Support
If you encounter issues with Notch Pay Collect:
- Check the API Reference for detailed parameter documentation
- Contact our support team for assistance
- Join our developer community to connect with other developers