post https://backend.sa.amwal.tech/payment_links//create
Create payment links optimized for online transactions including e-commerce orders, invoices, subscriptions, and remote payments. Perfect for businesses that need to collect payments via email, SMS, or web sharing.
Environment Selection:
Use the optional X-Amwal-Key
header to specify environment:
- For sandbox testing:
X-Amwal-Key: sandbox-amwal-xxx
- For production:
X-Amwal-Key: prod-amwal-xxx
(or omit header for default production)
Typical Online Flow:
- Generate payment link via API or merchant portal
- Share link with customer via email, SMS, or messaging
- Customer clicks link and completes payment online
- Payment processes with email/SMS confirmations
- Digital receipt sent automatically
- Webhook notification sent to your system
Best Practices for Online Payments:
- Use longer expiry times (hours/days) for customer convenience
- Include detailed descriptions and customer information
- Enable email and SMS notifications for better UX
- Use single-use links for invoices and orders
- Collect customer address if needed for shipping