Payment Links
Payment Links in Modem Pay are designed to help businesses collect payments effortlessly through a hosted checkout page. With a unique link, customers can be directed to pay for items or services without requiring code-intensive solutions or complicated integrations.
Primary Use Cases:
- Single-Charge Payments: One-time payments, perfect for items or services.
- Recurring Payments (Subscriptions): Set up links for ongoing payments.
- Donations: Enable variable amounts for donation collections.
A Payment Link is highly customizable, allowing the merchant to specify payment details like amount, currency, title, description, and additional form fields. These fields enable you to gather custom data from customers, such as details about the product or service, or special instructions.
How it Works in Real Life
Fatou runs a boutique on Kairaba Avenue, selling elegant African prints and handcrafted accessories. Her shop, Elegant Threads, is popular among locals and tourists alike. But one challenge keeps coming up: customers often request to pay remotely for reserved items, especially during the busy festive seasons.
One afternoon, a loyal customer, Mariama, calls from Banjul. She has her eye on a stunning wax print dress but won’t be able to visit the shop until next week. “Can I pay now to secure it?” Mariama asks.
Fatou logs into the Modem Pay dashboard and quickly generates a payment link. She customizes it with the item’s name and price, D3,500 for the dress. Within seconds, she shares the link via WhatsApp.
Mariama clicks the link, completes the payment, and sends a confirmation screenshot. The dress is now secured, waiting for her pickup.
With Modem Pay’s payment link feature, Fatou keeps her customers happy and never misses a sale, even from miles away. On Kairaba Avenue, where businesses thrive on trust and connections, this simple tool has become a game-changer.
Payment Link Properties
Each Payment Link object includes the following fields:
- id (string): Unique identifier.
- payment_link (string): URL to share with customers for payment.
- unique_code (string): Code used for tracking and managing the link.
- status (string):
"active"
or"inactive"
, indicating availability. - type (string): Payment link type, such as
"single-charge"
,"subscriptions"
, or"donations"
. - title (string): Title displayed on the checkout page.
- description (string): Brief description of the item or service.
- amount (number): Amount to be charged; leave blank to let customers enter their preferred amount.
- currency (string): Payment currency.
- redirect_url (string): URL for successful payments.
- cancel_url (string): URL if the customer cancels the payment.
- custom_fields (string[]): Fields to collect additional customer data.
Payment Link Operations
Modem Pay’s Payment Link API provides tools to create, retrieve, update, list, and delete links. Here’s how each operation works:
1. Create a Payment Link
To create a Payment Link for course enrollment:
Parameters:
- title (optional): Title that appears on the checkout page.
- description (optional): Details of what’s being paid for (e.g., course title).
- amount (optional): Set payment amount, or leave blank to let customers enter their preferred amount.
- currency: Set the currency (e.g.,
"GMD"
). - redirect_url: URL for successful payment redirection.
- cancel_url: URL for canceled payments.
- custom_fields (optional): Extra fields to collect additional data, such as the specific course name and student ID.
Response:
2. Retrieve a Payment Link
Retrieve details for a specific Payment Link by using its unique id
:
3. Update a Payment Link
To modify an existing Payment Link, such as updating the amount, title, or status:
Updatable Fields:
- status:
"active"
or"inactive"
. - title: Update the title shown on the checkout page.
- description: Modify the course details or description.
- amount: Adjust the payment amount.
- currency: Change the currency.
- redirect_url: Change the redirect URL.
- cancel_url: Change the cancel URL.
- custom_fields: Edit or add data fields.
4. List Payment Links
Get a list of all Payment Links for easy management:
5. Delete a Payment Link
Remove an outdated or invalid Payment Link:
Key Benefits of Using Payment Links
- Flexible: Customize details like amount, title, and form fields to fit each payment need.
- Reusable: Payment Links can be set to active or inactive and reused as necessary.
- Easy Sharing: Share the link through emails, SMS, or embed it on a website.
With Modem Pay’s Payment Links, collecting payments becomes straightforward, whether you’re setting up one-time fees, subscriptions, or open-ended donations.