---
title: "POST /donate/pay"
method: POST
path: "/donate/pay"
tags: ["Card2Crypto", "Cardtocrypto", "Card-2-crypto", "checkout", "donate", "payment"]
---

# POST /donate/pay

`POST /donate/pay`

Generate a checkout link to be paid with Card2Crypto

## Request body

- object
  - `cost` integer, required — Payment cost in the number of cents (USD currency)
  - `userIp` string, required — IP Address of the buyer
  - `metadata` object — Key-value pairs that get saved in VaultCord and forwarded to your webhook. Store things like account ID, order numbers, etc.
  - `success_url` string — Redirect the buyer to this URL after successful payment
  - `failure_url` string — Redirect the buyer to this URL if the credit card gets declined or rejected for fraudulent use
  - `email` string — (Optional) Email address of the customer, for reference purposes
  - `userid` string — (Optional) Discord user ID of the buyer, for reference purposes
  - `userFingerprint` string — (Optional) Browser fingerprint, for reference purposes

## Response `200`

Successfully created checkout URL, redirect the customer to the below link.

- object
  - `success` boolean
  - `url` string
  - `tier_cached` boolean
  - `reference` string — This will be sent from our rest API webhook, in case you would like to save for later linking requests together.
  - `created_at` integer
  - `timestamp` string
  - `userEmail` string
  - `userIp` string
  - `userFingerprint` string
  - `metadata` object — Key-value pairs that get saved in VaultCord and forwarded to your webhook. Store things like account ID, order numbers, etc.
  - `success_url` string — Redirect the buyer to this URL after successful payment
  - `failure_url` string — Redirect the buyer to this URL if the credit card gets declined or rejected for fraudulent use

## Other responses

- `400` — Cost must be represented as the number 350 (which is $3.50 USD) or higher. Any lower is usually not allowed, unless your account manager has given you an exception and unique fee schedule.
- `403` — Your customers must not be connected to a VPN, hosting service such as Google Cloud, or TOR Browser. Getting several fraudulent orders is bad and jeopardizes our ability to accept payments.
- `422` — You must use the API key in https://dash.vaultcord.com/donate-links any other API key from Developers page or otherwise will NOT work here.

---

[API](https://skmtc.dev/vaultcord/apis/vaultcord-developers-api.md) · [All operations](https://skmtc.dev/vaultcord/apis/vaultcord-developers-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vaultcord/vaultcord-developers-api/revisions/7790bd606410/schema)
