Atlas Pay by Raven
]github-license-url
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.
Live Demo
✨ Features
- Card Payments. (Visa, MasterCard)
- USSD Payment.
- Bank Transfers.
- NQR Payments.
- Pay with Raven.
Installation:
npm install atlas-pay-sdk
or
```bash
yarn add atlas-pay-sdk
Usage :
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) {
console.log('Payment successful:', data);
}
AtlasPay.onClose = function(data) {
console.log('Payment modal Closed:', data);
}
AtlasPay.onResponse = function(data) {
console.log('We got a response:', data);
}
AtlasPay.onLoad = function(data) {
console.log('Payment window loaded:', data);
}
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",