@if(session('success') || session('error') || session('info'))
@if(session('success'))
Success: {{ session('success') }}
@endif
@if(session('error'))
Error: {{ session('error') }}
@endif
@if(session('info'))
Notice: {{ session('info') }}
@endif
@endif
@if(empty($transaction->gateway))
@php
$brandLogoBase64 = null;
if ($logo = setting('brand_logo')) {
$path = public_path('uploads/' . $logo);
if (file_exists($path)) {
$brandLogoBase64 = 'data:image/' . pathinfo($path, PATHINFO_EXTENSION) . ';base64,' . base64_encode(file_get_contents($path));
}
}
@endphp
Pay Amount
{{ number_format($transaction->amount, 2) }} {{ $transaction->currency }}
Select Payment Method
@else
@php
$lowerName = strtolower($transaction->gateway);
$gatewayType = 'default';
$themeClass = '';
$themeColor = 'var(--primary)';
if (str_contains($lowerName, 'bkash')) { $gatewayType = 'bkash'; $themeClass = 'text-bkash'; $themeColor = 'var(--bkash-color)'; }
elseif (str_contains($lowerName, 'nagad')) { $gatewayType = 'nagad'; $themeClass = 'text-nagad'; $themeColor = 'var(--nagad-color)'; }
elseif (str_contains($lowerName, 'rocket')) { $gatewayType = 'rocket'; $themeClass = 'text-rocket'; $themeColor = 'var(--rocket-color)'; }
elseif (str_contains($lowerName, 'binance')) { $gatewayType = 'binance'; $themeClass = 'text-binance'; $themeColor = '#F0B90B'; }
$methodAction = (str_contains($lowerName, 'merchant') || str_contains($lowerName, 'payment')) ? 'Payment' : 'Send Money';
$gName = explode(' ', $transaction->gateway)[0];
// BDT to USD conversion logic
$usdRate = floatval(setting('usd_rate', 115));
if ($usdRate <= 0) $usdRate = 115;
$isUsdGateway = false;
$usdKeywords = ['binance', 'bybit', 'cryptomus', 'paddle', 'payeer', 'paypal', 'stripe'];
foreach ($usdKeywords as $keyword) {
if (str_contains($lowerName, $keyword)) {
$isUsdGateway = true;
break;
}
}
$displayAmount = $transaction->amount;
$displayCurrency = $transaction->currency;
if ($isUsdGateway && $transaction->currency === 'BDT') {
$displayAmount = $transaction->amount / $usdRate;
$displayCurrency = isset($gatewayInfo->credentials['payment_currency']) ? $gatewayInfo->credentials['payment_currency'] : 'USDT';
}
@endphp
Amount to Pay
{{ number_format($displayAmount, 2) }} {{ $displayCurrency }}
@if($isUsdGateway && $transaction->currency === 'BDT')
Converted from {{ number_format($transaction->amount, 2) }} BDT
@endif
@if($gatewayType == 'bkash')
@elseif($gatewayType == 'binance')
@else
@endif
@if($transaction->status === 'PENDING')
@if(str_contains(strtolower($transaction->gateway), 'binance'))
@php
$binanceId = isset($gatewayInfo->credentials['binance_id']) ? $gatewayInfo->credentials['binance_id'] : '445094393';
$win = isset($gatewayInfo->credentials['verification_window']) ? $gatewayInfo->credentials['verification_window'] : '15';
@endphp
{{ number_format($displayAmount, 2) }} {{ $displayCurrency }}
1
Send Money
Open Binance App → Pay → Send to Binance User or
Click here
2
Send to Binance ID
Send to the following Binance ID
3
Enter Amount
Enter the exact amount below in USDT
{{ number_format($displayAmount, 8, '.', '') }} USDT
4
Submit Order ID
Complete payment, then enter the Order ID below
Note: Please verify within {{ $win }} minutes of making your payment
@else
1
Send Money
Go to your {{ $gName }} Mobile App
and choose
'{{ $methodAction }}'
2
Enter Number
Enter the following number
{{ isset($gatewayInfo) && $gatewayInfo->number ? $gatewayInfo->number : '017XXXXXXXX' }}
@if(isset($gatewayInfo) && $gatewayInfo->qr_code)
Scan QR
@endif
3
Enter Amount
Enter the amount
{{ number_format($transaction->amount, 2) }} BDT
4
Submit Transaction ID
Enter the Transaction ID below
@endif
@if(isset($gatewayInfo) && $gatewayInfo->qr_code)
Scan to Pay
Open {{ $gName }} app and scan the code
@endif
@else
Payment Verified!
@if(!empty($transaction->redirect_url))
Redirecting to merchant site in 3 seconds...
@php
$redirectUrl = $transaction->redirect_url;
$separator = str_contains($redirectUrl, '?') ? '&' : '?';
$finalUrl = $redirectUrl . $separator . 'status=SUCCESS&reference_id=' . urlencode($transaction->reference_id) . '&trx_id=' . urlencode($transaction->trx_id);
@endphp
Return to Merchant
@else
You may now close this window and return to the merchant site.
@endif
@endif
@endif
@if(setting('show_faq_on_checkout', 1) && !empty(setting('faqs')))
@php $faqsList = setting('faqs'); @endphp
@if(is_array($faqsList) && count($faqsList) > 0)
Frequently Asked Questions
@foreach($faqsList as $faq)
@if(!empty($faq['question']))
{{ $faq['question'] }}
{{ $faq['answer'] ?? '' }}
@endif
@endforeach
@endif
@endif
{{ setting('footer_text', '© ' . date('Y') . ' ' . setting('brand_name', 'AroraPay') . '. All rights reserved.') }}