Skip to content

🤖 Explain with AI

How to Generate and Share Payment Links for Instant Collections via Email or WhatsApp

A payment link with 4Geeks Payments is a secure, unique URL that opens the 4Geeks-hosted checkout. Create it in the console or the API, share it by email, WhatsApp, SMS, or social media, and the buyer pays with a card and 3D Secure when required. No checkout to build.

Before you start

  • Your business application must be approved and your payment account must be able to receive transfers. If it is still under review, the Create Link form explains what is missing.
  • Live links need a payout bank account. Complete it in the business application.
  • Test mode is available where the environment enables it. Test links never move real money; use them with test cards.
  1. Sign in to the 4Geeks Console.
  2. Open Payments → Payment Links.
  3. Click Create Link.
  4. Enter a Link Name your team will recognize.
  5. Enter the Amount and choose the Currency.
  6. Click Create Link and copy the URL.

The link appears in the table with its status, URL, and creation date. Use the copy action to share it again, or delete it to expire it.

Field What it does
Link Name Internal label; it is not shown to the buyer
Amount The amount the buyer pays, in the chosen currency
Currency The charge currency; your payout currency is the one of your payment account

Read the full reference in Payment Links.

Use a session for full control. The amount is in major units and the key goes in X-Api-Key:

curl -X POST 'https://api.4geeks.io/v1/payments/session' \
  -H 'X-Api-Key: sk_test_your_api_key_here' \
  -H 'Content-Type: application/json' \
  -d '{
    "amount": "49.00",
    "currency": "USD",
    "description": "Web Design Retainer – March",
    "items": ["Web Design Retainer"],
    "return_url": "https://yoursite.com/success"
  }'

The response gives you the session_id and the checkout_url:

{
  "session_id": "sess_1a2b3c4d5e6f",
  "checkout_url": "https://checkout.4geeks.io/checkout?session_id=sess_1a2b3c4d5e6f"
}

Share the checkout_url, or store the session_id and build the URL in your own flow. The Payment Links endpoint (POST /v1/payment-links) does the same with the amount in minor units (4900); pick one endpoint and keep its unit.

  • Email — include it in an invoice or a follow-up.
  • WhatsApp / SMS — paste the URL in the conversation.
  • Social media — use it in a bio, post, or direct message.
  • Your site — add it as a button or link.

The buyer opens the 4Geeks-hosted checkout, sees the amount and merchant name, and pays. When the card requires 3D Secure, the bank asks for a one-time password, biometric check, or app confirmation.

Track the payment

The link status moves from Pending to:

  • Completed — the payment succeeded; the link can no longer be paid.
  • Failed — the attempt failed or the payment intent was canceled.
  • Expired — you deleted the link.

A paid or expired link is never reused: create a new one for the next charge. Deleting a link does not refund a payment; use a Refund for that.

From the API, poll GET /v1/payments/session/{id}/status or verify the session server-side before delivering the product. The status endpoint reconciles a delayed webhook with the payment gateway.

Best practices and common pitfalls

  • Activate first: a link cannot be created without an approved payment account and an active transfer capability.
  • Test before sharing: use Test mode where enabled, then switch to Live.
  • Do not reuse a paid link: it is intentionally blocked.
  • Do not mix amount units: sessions use major units; /v1/payment-links uses minor units.
  • Keep the link private: the URL contains a secure session identifier; share it only with the buyer.
  • Monitor the status: a Pending link is not a payment; check it before shipping.

FAQ

Can I use a payment link for recurring billing?

No. Payment links are one-time payments. Use Subscriptions for recurring revenue.

Can I change the currency?

Yes. The Create Link form asks for the currency. Your payouts arrive in the currency of your payment account; see Supported countries.

Do links expire?

A link stays Pending until it is paid, deleted, or the payment fails. Deleting it moves it to Expired.

Why does Create Link return an error?

Your payment account may be missing, not approved, or still waiting for its transfer capability. See Activate Payments.


Still have questions? Ask on Discord or explore the tutorials.