Cripay Docs

Payment links

Reusable hosted checkout pages for invoices, tips and products without writing checkout code.

A payment link is a page at https://pay.your-domain.com/l/plink_… that creates a payment every time someone proceeds. Fixed price, or let the payer choose an amount between min_amount and max_amount.

const link = await cryptopay.paymentLinks.create({
  title: "Pro plan",
  description: "Monthly subscription",
  amount: "25.00",                 // omit for "pay what you want" with min_amount / max_amount
  currency: "USD",
  collect_email: true,             // ask the payer for an email (returned as customer_email)
  max_uses: 100,                   // optional cap; expires_at optional
  success_url: "https://shop.example/thanks",
  metadata: { sku: "pro" },
});
console.log(link.url); // share it

Every payment created from a link carries payment_link: "plink_…", the link's success_url/cancel_url, its metadata and description. List them with GET /v1/payments?payment_link=plink_…. Deactivate a link with PATCH /v1/payment-links/:id { status: "inactive" }; prices are immutable (create a new link).