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
Schema
payWalletForPresale(
presaleId: Int!
orderId: Int!
cryptoType: String!
): String
Parameters
presaleId
RequiredInt!
orderId
RequiredInt!
cryptoType
RequiredString!
Return Value
Returns a message indicating the result of the payment process
Example
mutation {
payWalletForPresale(
presaleId: 1
orderId: 123
cryptoType: "BTC"
)
}
Response Example
{
"data": {
"payWalletForPresale": "Payment successful"
}
}
Benefits
No blockchain confirmations needed - payments are processed immediately
No gas fees or payment processing fees for internal transfers
Funds never leave the platform, reducing transaction risks
No external wallets or complex integrations required
How It Works
System verifies user has sufficient balance in the specified cryptocurrency
Payment amount is deducted from user's wallet balance
Presale order status is updated to paid immediately
NDB tokens are allocated to the user's specified destination
Supported Cryptocurrencies
Important Notes
Ensure users have enough balance before attempting payment to avoid errors
Payment is processed atomically - either fully completes or fully fails
No waiting for blockchain confirmations - order is fulfilled immediately
All wallet payments are recorded in user's transaction history
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.