UNPKG

1.46 kBSource Map (JSON)View Raw
1{"version":3,"sources":["../../src/providers/BitpayBillingProvider.js"],"names":["BitpayBillingProvider","BillingProvider"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;AAEA;IAEqBA,qB;;;;;;;;;;;EAA8BC,4B,GAEnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sourcesContent":["import BillingProvider from './BillingProvider';\n\n// We have realization of this billing provider, just text us https://t.me/lskjs\n\nexport default class BitpayBillingProvider extends BillingProvider {}\n\n// Api is working, but disabled by BuzzGuru\n// return new Promise((resolve, reject) => {\n// const key = config.key || fs.readFileSync(config.keyPath, 'utf8');\n// const privkey = bitauth.decrypt(config.password, key);\n// const client = bitpay.createClient(privkey, {\n// config: {\n// apiHost: config.apiHost || 'bitpay.com',\n// apiPort: config.apiPort || 443,\n// forceSSL: config.forceSSL || false,\n// },\n// });\n// client.on('ready', () => {\n// client.createInvoice = async (data) => {\n// return new Promise((resolve2, reject2) => {\n// client.as('pos').post('invoices', data, (err, invoice) => {\n// if (err) return reject2(err);\n// return resolve2(invoice);\n// });\n// });\n// };\n// return resolve(client);\n// });\n// client.on('error', reject);\n// });\n"],"file":"BitpayBillingProvider.js"}
\No newline at end of file