Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

adonisjs-paystack

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adonisjs-paystack - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

5

CHANGELOG.md
<a name="0.1.3"></a>
# 0.1.4 (2019-05-25)
- Fixed "Cannot find module '../src/Paystack/index.js'" error for provider
<a name="0.1.3"></a>
# 0.1.3 (2019-04-18)

@@ -3,0 +8,0 @@

2

package.json
{
"name": "adonisjs-paystack",
"version": "0.1.3",
"version": "0.1.4",
"description": "An addon/plugin package to provide PayStack payment services in AdonisJS 4.1+",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,6 +17,6 @@ 'use strict'

const Env = this.app.use('Env')
const PayStack = require('../src/Paystack/index.js')
const _paystack = new PayStack(require('paystack-node'), Config, Env)
const PayStack = require('../src/PayStack/index.js')
const paystack = new PayStack(require('paystack-node'), Config, Env)
return _paystack.agent
return paystack.agent
})

@@ -23,0 +23,0 @@

@@ -24,3 +24,3 @@ # adonis-paystack

const paystack = use('PayStack')
const Paystack = use('PayStack')

@@ -46,6 +46,6 @@ /**

//.....
//.....
let response = await paystack.initializeTransaction({
callback_url:"https://example.com/hooks/paystack",
let response = await Paystack.initializeTransaction({
callback_url:"https://locahost:3333/trans/hooks/paystack",
amount: 3000,

@@ -60,2 +60,15 @@ email: "xyz@abc.com"

async fetchCustomer({ request, response }){
//.....
let response = await Paystack.getCustomer({
customer_id:'CUS_reu3738we993wsnqah'
})
return await response.status(200).json({
data: response.body
})
}
}

@@ -62,0 +75,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc