Skip to main content

Using Payment Links

Payment links are a quick and easy way to collect payments from customers without writing a lot of integration code. With a payment link, the process is straightforward: create a payment link, send the link to your customer, and Credo will take care of things.

You can use payment links to collect one-time or subscription-based payments, via the same process. You can also specify custom fields for users to fill. For example, you could add a field called "How did you hear about this product?"

Payment Link page

To create a link, visit the Payment Links section of your dashboard. Here you can see all the payment links you've created. Click the Create Payment Link button to get started. Next, pick "One-Time" or "Subscription", then fill in the form.

Create Payment Link dialog

If you'd rather create a payment link programmatically, you can make use of the create a payment link endpoint.

credo.createPaymentLink({
"typeId": 1,
"name": "Payment for Jumbo Chops",
"description": "3 chickens, 1 bag of chips, 2 plantains.",
"amount": 4000,
"redirectUrl": "http://myapp.com/orders/eyu67234ff/paymentComplete",
"successMessage": "Thanks for your purchase, you beautiful human!",
"currencies": "NGN",
"customFields": "Favourite Colour|Age"
});