We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello. I am trying to pass a callback or handle some sort of function when there is a successful or failed payment. Here is my code:
paystack.transaction.initialize({ email: ${req.query.email}, amount: req.query.amount * 100, interval: ${req.query.interval}`, currency: 'NGN', plan: response.data.plan_code, callback: function(response) {
paystack.transaction.initialize({ email:
, amount: req.query.amount * 100, interval:
var reference = response.reference; console.log('Payment complete! Reference: ' + reference); }, }) .then(response => { if (response.status) { res.send({ success:true, url: response.data.authorization_url }) }else{ res.send({ success:false, url: null }) } }).catch(err => { console.log(err) res.send({ success:false,url:null }) })`
The callback isn't working unfortunately. I have no idea why. I need to navigate to another screen after a cancelled or successful payment.
The text was updated successfully, but these errors were encountered:
Hi! try out this package. It's not yet a major release but it supports typescript and other JavaScript runtime like bun and Deno https://www.npmjs.com/package/@gray-adeyi/paystack-sdk
Sorry, something went wrong.
No branches or pull requests
Hello. I am trying to pass a callback or handle some sort of function when there is a successful or failed payment. Here is my code:
paystack.transaction.initialize({ email:
${req.query.email}, amount: req.query.amount * 100, interval:
${req.query.interval}`,currency: 'NGN',
plan: response.data.plan_code,
callback: function(response) {
The callback isn't working unfortunately. I have no idea why. I need to navigate to another screen after a cancelled or successful payment.
The text was updated successfully, but these errors were encountered: