adonisjs-paystack
Advanced tools
Comparing version 0.1.3 to 0.1.4
<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 @@ |
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8137
115