REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 2.21 KB
Close
/home/byroehnu/.trash/node_modules11/flutterwave-node-v3/test/rave.virtualcards.test.js
Text
Base64
// var cards = require('../lib/rave.virtual_cards'); // var tokenPayments = require('../lib/rave.tokenized'); // var base = require('../lib/rave.base'); // var Promise = require('bluebird'); // var mocha = require('mocha'); // var chai = require('chai'); // var expect = chai.expect; // var chaiAsPromised = require('chai-as-promised'); // var dotenv = require('dotenv').config(); // const sinon = require('sinon'); // const sinonChai = require('sinon-chai'); // chai.use(chaiAsPromised); // chai.use(sinonChai); // describe('#Rave Cards issuing', function () { // const public_key = process.env.PUBLIC_KEY; // const secret_key = process.env.SECRET_KEY; // const ravebase = new base(public_key, secret_key); // // let trxInstance; // // let momoStub; // beforeEach(() => { // cardInstance = new cards(ravebase); // }); // afterEach(() => { // sinon.restore(); // }); // it('should successfully fetch all cards', async function () { // this.timeout(10000); // // var payload = { // // id: '4186265', // // }; // var resp = await cardInstance.fetch_all(); // // console.log(resp); // }); // it('should successfully fetch card details', async function () { // this.timeout(10000); // var payload = { // id: '776192c3-a85b-4dc4-9620-109877d1f6f8', // }; // var resp = await cardInstance.fetch(payload); // // console.log(resp); // }); // it('should create a virtual card', async function () { // this.timeout(10000); // var payload = { // currency: 'USD', // amount: 5, // debit_currency: 'NGN', // billing_name: 'Example User.', // billing_address: '333, Fremont Street', // billing_city: 'San Francisco', // billing_state: 'CA', // billing_postal_code: '94105', // billing_country: 'US', // first_name: 'Example', // last_name: 'User', // date_of_birth: '1996/12/30', // email: 'userg@example.com', // phone: '07030000000', // title: 'Mr', // gender: 'M', // callback_url: 'https://webhook.site/b67965fa-e57c-4dda-84ce-0f8d6739b8a5', // }; // var resp = await cardInstance.create(payload); // // console.log(resp); // }); // });
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 16
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
rave.bank.test.js
2.46 KB
lrw-r--r--
2026-02-21 00:53:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rave.beneficiaries.test.js
3.79 KB
lrw-r--r--
2026-02-21 00:53:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rave.bills.test.js
16.01 KB
lrw-r--r--
2026-02-21 00:53:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rave.card.charge.test.js
2.68 KB
lrw-r--r--
2026-02-21 00:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rave.charge.test.js
45.37 KB
lrw-r--r--
2026-02-21 00:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rave.ebills.test.js
3.29 KB
lrw-r--r--
2026-02-21 00:54:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rave.misc.test.js
3.97 KB
lrw-r--r--
2026-02-21 00:54:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rave.momo.test.js
26.99 KB
lrw-r--r--
2026-02-21 00:54:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rave.otp.test.js
2.44 KB
lrw-r--r--
2026-02-21 00:54:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rave.payment-plan.test.js
3.58 KB
lrw-r--r--
2026-02-21 00:54:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rave.settlements.test.js
1.63 KB
lrw-r--r--
2026-02-21 00:54:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rave.subscriptions.test.js
2.74 KB
lrw-r--r--
2026-02-21 00:54:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rave.tokenization.test.js
8.13 KB
lrw-r--r--
2026-02-21 00:54:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rave.transactions.test.js
4.91 KB
lrw-r--r--
2026-02-21 00:54:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rave.transfer.test.js
6.44 KB
lrw-r--r--
2026-02-21 00:54:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rave.virtualcards.test.js
2.21 KB
lrw-r--r--
2026-02-21 00:54:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).