topupjavascript6711
GHUShop - Top Up DANA Bebas Nominal Scraper & Calculator
Scraper dan kalkulator biaya layanan top-up Saldo DANA Bebas Nominal dari https://ghushop.com/games/saldo-dana-bbsnom dengan 18 metode pembayaran (QRIS, E-Wallet, VA, Retail).
Vamz Spectre12 Okt 2026119 baris kode
Jalankan via Terminal / CLI:
# 1. Download file script
curl -sL "https://code.vamxapi.my.id/snippet/raw/ghushop-dana-bbsnom" -o ghushop-dana-bbsnom.js
# 2. Jalankan script
node ghushop-dana-bbsnom.js
Dependencies npm yang Dibutuhkan:
npm install None (Pure Node.js / Zero Dependency)Panduan Penggunaan:
Gunakan calculateDanaTopup(nominal) untuk menghitung total bayar untuk semua metode atau calculateDanaTopup(50000, 36) untuk QRIS.
ghushop-dana-bbsnom.js(119 lines)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/**
* ========================================================
* Name: GHUShop - Top Up DANA Bebas Nominal Scraper & Calculator
*
* Cara Download:
* curl -sL "https://code.vamxapi.my.id/snippet/raw/ghushop-dana-bbsnom" -o ghushop-dana-bbsnom.js
*
* Cara Eksekusi:
* node ghushop-dana-bbsnom.js 50000
*
* Author: Vamz Spectre
* Source: https://vamxapi.my.id
* ========================================================
*/
/** Daftar metode pembayaran GHUShop beserta rumus fee */
const PAYMENT_METHODS = [
{ id: "1", name: "GCash", category: "Saldo Akun", flat: 0, percent: 0, icon: "https://ghushop.com/assets/images/method/1699007123_e811d0673131d339f393.png" },
{ id: "36", name: "QRIS Server 1", category: "QRIS", flat: 0, percent: 0.70494, icon: "https://ghushop.com/assets/images/method/1780939127_ea91f026c41860fe8290.png" },
{ id: "20", name: "QRIS Server 2", category: "QRIS", flat: 0, percent: 0.70494, icon: "https://ghushop.com/assets/images/method/1732101751_93aee3d56d52603f2cf1.png" },
{ id: "12", name: "QRIS Server 3", category: "QRIS", flat: 0, percent: 0.70494, icon: "https://ghushop.com/assets/images/method/1677571456_37199799c66aea1c3982.png" },
{ id: "19", name: "LinkAja", category: "E-Wallet", flat: 0, percent: 1.698365, icon: "https://ghushop.com/assets/images/method/1702559452_2d61704fb1fac8fe59ca.png" },
{ id: "14", name: "GoPay", category: "E-Wallet", flat: 0, percent: 1.698365, icon: "https://ghushop.com/assets/images/method/1699004187_94995f017a4259bf6a54.png" },
{ id: "7", name: "DANA", category: "E-Wallet", flat: 0, percent: 1.698365, icon: "https://ghushop.com/assets/images/method/1677316170_2c37937537bd5b9c9dee.png" },
{ id: "6", name: "OVO", category: "E-Wallet", flat: 0, percent: 3.12468, icon: "https://ghushop.com/assets/images/method/1677316128_88601607f5150df9195b.png" },
{ id: "5", name: "ShopeePay", category: "E-Wallet", flat: 0, percent: 4.166669, icon: "https://ghushop.com/assets/images/method/1677316114_1d853f2bfd0291d76ce4.png" },
{ id: "18", name: "Permata VA", category: "Virtual Account", flat: 3000, percent: 0, icon: "https://ghushop.com/assets/images/method/1702561116_465124609e40dbda75b1.png" },
{ id: "17", name: "Maybank VA", category: "Virtual Account", flat: 3000, percent: 0, icon: "https://ghushop.com/assets/images/method/1702560174_f73043ddf36e9bc729a3.png" },
{ id: "16", name: "CIMB Niaga VA", category: "Virtual Account", flat: 3000, percent: 0, icon: "https://ghushop.com/assets/images/method/1702561150_446e8f69f2ff7a120340.png" },
{ id: "15", name: "Bank Neo VA", category: "Virtual Account", flat: 3000, percent: 0, icon: "https://ghushop.com/assets/images/method/1702559956_c6f520305766e5ad8496.png" },
{ id: "11", name: "BRI VA", category: "Virtual Account", flat: 3000, percent: 0, icon: "https://ghushop.com/assets/images/method/1677316318_8aa6cda9bc9a43294ce8.png" },
{ id: "10", name: "BNI VA", category: "Virtual Account", flat: 3000, percent: 0, icon: "https://ghushop.com/assets/images/method/1677316294_66f96a3a038f99b2247f.png" },
{ id: "8", name: "Mandiri VA", category: "Virtual Account", flat: 3000, percent: 0, icon: "https://ghushop.com/assets/images/method/1677316223_639041b17ae1bb7cd244.png" },
{ id: "4", name: "Alfamart", category: "Convenience Store", flat: 6000, percent: 0, icon: "https://ghushop.com/assets/images/method/1677316074_9978433baaebc27d840f.png" },
{ id: "3", name: "Alfamidi", category: "Convenience Store", flat: 6000, percent: 0, icon: "https://ghushop.com/assets/images/method/1677316060_eda1d7eb41b44eb13a31.png" }
];
/**
* Hitung rincian biaya top up DANA Bebas Nominal GHUShop
* @param {number|string} nominal - Nominal saldo DANA yang diinginkan
* @param {string} [methodId] - ID metode pembayaran tertentu (opsional)
*/
function calculateDanaTopup(nominal, methodId = null) {
const amount = parseInt(String(nominal).replace(/[^0-9]/g, ""), 10);
if (!amount || amount <= 0) {
throw new Error("Nominal saldo tidak valid.");
}
// Aturan biaya layanan GHUShop:
// Rp 0 - 200.000: Flat Rp 200
// Rp 200.001 - 1.000.000: 1.25%
let serviceFee = 0;
if (amount <= 200000) {
serviceFee = 200;
} else {
serviceFee = Math.round((amount / 100) * 1.25);
}
const baseTotal = amount + serviceFee;
const paymentPricing = PAYMENT_METHODS.map((m) => {
const feeFlat = m.flat;
const feePercent = Math.round((baseTotal / 100) * m.percent);
const totalPaymentFee = feeFlat + feePercent;
const grandTotal = baseTotal + totalPaymentFee;
return {
id: m.id,
name: m.name,
category: m.category,
serviceFee,
paymentFee: totalPaymentFee,
total: grandTotal,
icon: m.icon
};
});
const filtered = methodId
? paymentPricing.filter((p) => p.id === String(methodId))
: paymentPricing;
return {
status: true,
creator: "Vamz Spectre",
product: {
name: "Top Up DANA Bebas Nominal",
slug: "saldo-dana-bbsnom",
url: "https://ghushop.com/games/saldo-dana-bbsnom",
logo: "https://ghushop.com/assets/images/games/logo/1695889371_0c9a1d29f2b263ae42f9.png"
},
nominal: amount,
serviceFee,
baseTotal,
payments: filtered
};
}
/**
* CLI Runner:
* Langsung eksekusi jika dijalankan via terminal: node ghushop-dana-bbsnom.js 50000
*/
const argNominal = process.argv[2];
if (argNominal) {
try {
const amount = parseInt(argNominal, 10);
const result = calculateDanaTopup(isNaN(amount) ? 50000 : amount);
console.log(JSON.stringify(result, null, 2));
} catch (err) {
console.error(JSON.stringify({ success: false, error: err.message }, null, 2));
process.exit(1);
}
} else if (process.argv[1] && process.argv.length <= 2) {
console.log("Usage: node ghushop-dana-bbsnom.js <nominal>");
}
if (typeof module !== "undefined" && module.exports) {
module.exports = { PAYMENT_METHODS, calculateDanaTopup, default: calculateDanaTopup };
}