Bag is live — accept USDC & card payments globally. Get started →
BagBag Docs
Finance

Payment Links

Generate shareable payment links for one-time or recurring payments.

Payment Links

Generate shareable payment links for one-time or recurring payments without building a custom checkout flow.


Payment links can be created via:

  • Dashboard - No-code UI for quick link creation
  • API - Programmatic generation for dynamic use cases

Dashboard Creation

  1. Navigate to Payment Links in your dashboard
  2. Click Create New Link
  3. Configure:
    • Product or custom amount
    • Payment methods (stablecoin, card, or both)
    • Expiration date (optional)
    • Success redirect URL
    • Custom metadata
  4. Generate and share

API Creation

POST /api/payment-links
{
  "amount": 100.00,
  "currency": "USD",
  "description": "Premium Plan - Monthly",
  "payment_methods": ["usdc", "card"],
  "expires_at": "2026-04-01T00:00:00Z",
  "success_url": "https://yourapp.com/success",
  "metadata": {
    "customer_id": "cust_123",
    "plan": "premium"
  }
}

One-Time Use

Link expires after a single successful payment. Ideal for invoices, specific sales, or unique access codes.

Reusable

Link can be used multiple times. Ideal for:

  • Product sales pages
  • Donation pages
  • Event registrations

Payment Method Selection

Customers can choose their preferred payment method:

  • USDC (Ethereum, Polygon, Solana, Base)
  • Credit/Debit Cards

The link displays all available options, and the customer selects at checkout.


Customization

Amount

  • Fixed amount
  • Customer-entered amount (pay-what-you-want)
  • Variable amount based on product selection

Expiration

  • Set specific expiration date/time
  • No expiration (link stays active indefinitely)

Redirect URLs

  • Success page - Where customer lands after payment
  • Cancel page - Where customer goes if they abandon checkout

Branding

  • Custom logo
  • Brand colors
  • Company name

Sharing Methods

Direct Link Copy and paste URL to share via any channel.

QR Code Download QR code image for:

  • Print materials
  • Event signage
  • Digital displays

Email Send link directly via email with customizable message template.

Embed Embed payment link as a button on your website.


Security

  • Encrypted links
  • Signature verification to prevent tampering
  • Expiration enforcement
  • Rate limiting to prevent abuse

What's next

On this page