feat: expand cryptocurrency options and streamline payment flow

- Added support for 16 cryptocurrencies including Bitcoin, Ethereum, Monero, and popular stablecoins
- Removed email field from payment form as notifications are configured in merchant settings
- Organized crypto options by category (popular, stablecoins, other) for better UX
This commit is contained in:
Yusuf İpek
2025-11-17 17:58:54 +03:00
parent ce4d0a6e3a
commit 9123dbb4c0
2 changed files with 23 additions and 22 deletions
+1 -1
View File
@@ -60,6 +60,7 @@ export async function POST(request: NextRequest) {
}
// Prepare data for Cryptomus
// Note: Email notifications are configured in merchant account settings, not in API
const paymentData = {
merchant_id: MERCHANT_ID,
amount: body.amount.toString(),
@@ -68,7 +69,6 @@ export async function POST(request: NextRequest) {
description: body.description,
url_callback: `${process.env.NEXTAUTH_URL || 'http://localhost:3002'}/api/support/webhook`,
url_success: `${process.env.NEXTAUTH_URL || 'http://localhost:3002'}/support/success`,
email: body.email || undefined,
lifetime: 3600, // 1 hour
is_payment_multiple: false
}