NYYU Logo
APIPresale Payment

Pay For Presale Order With NYYU Wallet

Instant presale payments using internal wallet balances

NYYU Wallet Payment

Fast, fee-free payments using your internal wallet balance

Mutation

👛
payWalletForPresale
Pay with internal NYYU wallet balance

Schema

payWalletForPresale(
  presaleId: Int!
  orderId: Int!
  cryptoType: String!
): String

Parameters

presaleIdRequired
Type: Int!
The unique identifier of the presale round
orderIdRequired
Type: Int!
The ID of the presale order to pay for
cryptoTypeRequired
Type: String!
The cryptocurrency type to use from wallet (e.g., "BTC", "ETH", "USDT")

Return Value

📦
Returns String

Returns a message indicating the result of the payment process

Example

💻
Usage Example
Pay with BTC from wallet
mutation {
  payWalletForPresale(
    presaleId: 1
    orderId: 123
    cryptoType: "BTC"
  )
}

Response Example

📤
Sample Response
Successful payment
{
  "data": {
    "payWalletForPresale": "Payment successful"
  }
}

Benefits

Instant Payments

No blockchain confirmations needed - payments are processed immediately

💰
Zero Fees

No gas fees or payment processing fees for internal transfers

🔒
Secure

Funds never leave the platform, reducing transaction risks

Simple

No external wallets or complex integrations required

How It Works

🔄
Wallet Payment Process
Internal balance transfer workflow
1
Check Balance

System verifies user has sufficient balance in the specified cryptocurrency

2
Deduct Amount

Payment amount is deducted from user's wallet balance

3
Update Order

Presale order status is updated to paid immediately

4
Deliver Tokens

NDB tokens are allocated to the user's specified destination

Supported Cryptocurrencies

Available Wallet Currencies
₿ Bitcoin (BTC)
Ξ Ethereum (ETH)
₮ Tether (USDT)
💵 USD Coin (USDC)
🪙 BNB
🟣 Polygon (MATIC)
And more...

Important Notes

⚠️
Sufficient Balance

Ensure users have enough balance before attempting payment to avoid errors

🔐
Atomic Operation

Payment is processed atomically - either fully completes or fully fails

Instant Confirmation

No waiting for blockchain confirmations - order is fulfilled immediately

💡
Transaction History

All wallet payments are recorded in user's transaction history

💡
Best Practice

Check user's wallet balance before displaying this payment option. Show real-time balance updates. Provide clear error messages if balance is insufficient. Consider offering users the ability to deposit to their wallet first if balance is low. This payment method is ideal for repeat customers.