Skip to main content

Payment Links

Payment Links allow you to easily accept online payments by generating a unique URL that you can share with your customers. Customers can use this link to access a secure payment page and complete their payment.

Payment Links can be customized to match your brand and payment requirements. You can set the amount, currency, description, image, call-to-action button, confirmation message, redirect URL.

You can create a payment link by providing the required details such as title, amount, and currency.

var paymentLink = new CreatePaymentLink
{
Title = "Service Payment",
Amount = 100.00,
Currency = "AUD"
};

var svc = new payfurl.sdk.PaymentLink();
svc.Create(paymentLink);

Customizing the Payment Page

You can customize the payment page using the following fields:

  • Description: Additional information about the payment.
  • Image: Base64-encoded image to display on the payment page.
  • CallToAction: The text for the payment button.
  • ConfirmationMessage: Message shown after payment is completed.
  • RedirectUrl: URL to redirect the customer after payment.

Example with Customization

var paymentLink = new CreatePaymentLink
{
Title = "Service Payment",
Amount = 100.00,
Currency = "AUD",
Description = "Payment for services",
Image = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAYAAAA9zQYyAAAACXBIWXMAACF0AAAhdAFhwPt.....",
CallToAction = "Donate",
RedirectUrl = "https://payfurl.com"
};

var svc = new payfurl.sdk.PaymentLink();
svc.Create(paymentLink);

Limiting the Number of Payments

You can restrict the number of payments that can be made using a payment link by setting LimitPayments.

var paymentLink = new CreatePaymentLink
{
Title = "Service Payment",
Amount = 100.00,
Currency = "AUD",
LimitPayments = 1
};
var svc = new payfurl.sdk.PaymentLink();
svc.Create(paymentLink);

Restricting Available Payment Methods with AllowedPaymentTypes

The AllowedPaymentTypes field lets you control which payment methods are shown on the payment form. You can specify one or more of the following values:

  • card
  • paypal
  • applepay
  • googlepay
  • upi
  • payto
  • payid
  • shift
  • pesapal
  • paybyaccount
  • payglocal
  • zip

Example with AllowedPaymentTypes

var paymentLink = new CreatePaymentLink
{
Title = "Service Payment",
Amount = 100.00,
Currency = "AUD",
AllowedPaymentTypes = new[] { "card", "paypal", "googlepay" }
};
var svc = new payfurl.sdk.PaymentLink();
svc.Create(paymentLink);

Add AllowedPaymentTypes to your payment link to restrict which payment methods are available to your customers.

To get information about a specific payment link, use the following:

var svc = new payfurl.sdk.PaymentLink();
var result = svc.Single("some-payment-link-id");