![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
atlas-pay-sdk
Advanced tools
Atlas Pay by Raven bank allows you recieve payments and build powerful checkout experience on your website and apps, to use this you will need to create an account on raven atlas, visit, "Raven bank" for more.
npm install atlas-pay-sdk
or
```bash
yarn add atlas-pay-sdk
Atlas-Pay provides you with few Javascript API's to interact with below is an example implementation of the atlas-pay library:
import './App.css'
import AtlasPay from 'atlas-pay-sdk';
function App() {
AtlasPay.onSuccess = function(data) {
/**
* handle successful payment
* (optional) : you can decide to retrieve the onClose message we send via data
**/
console.log('Payment successful:', data);
}
AtlasPay.onClose = function(data) {
/**
* handle close event, this happens when user closes the payment modal
* (optional) : you can decide to retrieve the onClose message we send via data
**/
console.log('Payment modal Closed:', data);
}
AtlasPay.onResponse = function(data) {
/**
* handle generate respons, this triggers when you try generating a new ref via AtlasPay.generate(), you catch ther response here
* (optional) : you can decide to retrieve the onClose message we send via data
**/
console.log('We got a response:', data); // or do your stuff here
}
// set up your new payment parameters, along side your secret key
let config = {
"customer_email": "john@example.com",
"description" : "test payment",
"merchant_ref": "your_merchant_reference",
"amount": 100,
"redirect_url": "",
"payment_methods" : "card,bank_transfer,ussd,raven",
"secret_key" : "your_atlas_secret_key"
}
return (
<>
<button onClick={()=> AtlasPay.generate(config)}>Generate New Ref</button>
<button onClick={()=> AtlasPay.init('202304211026JBCAADE')}>Initialize Payment Window</button>
</>
)
}
export default App
"postbuild": "node scripts/copy && npm run size",
1.0.0 (2023-04-22)
<a name="0.0.1"></a>
FAQs
Raven Atlas NodeJS Payment SDK
The npm package atlas-pay-sdk receives a total of 37 weekly downloads. As such, atlas-pay-sdk popularity was classified as not popular.
We found that atlas-pay-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.