mirror of
https://github.com/yusufipk/RepoHub.git
synced 2026-09-11 18:46:07 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user