![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
bankbox-me-sdk
Advanced tools
@ravenpay/bankbox-me-sdk
is a JavaScript SDK designed to seamlessly integrate the Bankbox payment widget into web applications. This SDK allows developers to embed and manage the Bankbox widget for handling transactions with customizable configurations.
Install the SDK via npm:
npm install @ravenpay/bankbox-me-sdk
Or using yarn:
yarn add @ravenpay/bankbox-me-sdk
import BankboxManager from '@ravenpay/bankbox-me-sdk';
Create an instance of BankboxManager
with the required configuration:
const bankbox = new BankboxManager({
appName: 'your-app-name',
environment: 'sandbox', // or 'production' only production supported, you can leave blank for production
// widgetOptions: {},
containerId: 'bankbox-container' //optional,
onSuccess: (data) => console.log('Transaction Successful:', data),
onFail: (data) => console.log('Transaction Failed:', data),
onError: (error) => console.error('Error:', error),
onLoad: () => console.log('Bankbox Loaded'),
});
To mount the Bankbox widget inside a specific container:
bankbox.mount({
email: 'user@example.com',
amount: 1000,
containerId: 'custom-container-id',
});
To display the Bankbox widget as an overlay:
bankbox.open({
email: 'user@example.com',
amount: 1000,
});
To close the Bankbox widget manually:
bankbox.close();
You can listen to various events using event listeners:
bankbox.addEventListener('success', (data) => {
console.log('Transaction Successful:', data);
});
bankbox.addEventListener('fail', (data) => {
console.log('Transaction Failed:', data);
});
bankbox.addEventListener('error', (error) => {
console.error('Error:', error);
});
To remove an event listener:
bankbox.removeEventListener('success', callbackFunction);
To completely remove the Bankbox instance and clean up event listeners:
bankbox.destroy();
Property | Type | Description |
---|---|---|
appName | string | Your application name |
environment | `'sandbox' | 'production'` |
widgetOptions | object | Additional configuration options for the widget |
containerId | string | ID of the container element for embedding the widget |
onSuccess | function | Callback triggered on successful transactions |
onFail | function | Callback triggered on failed transactions |
onError | function | Callback triggered on widget errors |
onLoad | function | Callback triggered when the widget loads |
Event Type | Description |
---|---|
success | Triggered when a transaction is successful |
fail | Triggered when a transaction fails |
error | Triggered when an error occurs in the widget |
load | Triggered when the widget loads |
The default container includes:
Override styles by:
#bankbox-container
postMessage
with strict origin validationModern browsers (Chrome 80+, Firefox 72+, Safari 13+). Requires:
postMessage
APIappName
configurationMIT License. See LICENSE for details.
FAQs
Raven Bankbox JS Payment SDK
We found that bankbox-me-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.