₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,979 members, 8,514,794 topics. Date: Saturday, 07 November 2026 at 11:59 AM

Toggle theme

Please How Can I Integrate Paystack Payment On My Phonegap App - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › Please How Can I Integrate Paystack Payment On My Phonegap App (399 Views)

1 Reply (Go Down)

Please How Can I Integrate Paystack Payment On My Phonegap App by toptino(op): 7:38pm On Aug 03, 2020
Hi
I am new to cordova and its development. I am having an issue with window.PaystackPlugin.chargeCard. My app is throwing the error of:
charge failed:[object Object]. I used phonegap Build for my app.

My code:

function payWithPaystack(){
(
window.PaystackPlugin.chargeCard(
function(resp) {
// charge successful, grab transaction reference - do your thang!
console.log('charge successful: ', resp);
alert("charged:" + resp);
},
function(response) {
// Something went wrong, oops - perhaps an invalid card.
console.log('charge failed: ', resp);
alert("charge failed:" + resp)
},
{
cardNumber: '507850785078507812',
expiryMonth: '08',
expiryYear: '21',
cvc: '081',
email: 'customer@email.com',
amountInKobo: 90000,
});
alert(window.PaystackPlugin);
}

The alert(window.PaystackPlugin); gives [object Object].

Please i need your help.

Thanks
Re: Please How Can I Integrate Paystack Payment On My Phonegap App by Nobody: 10:23pm On Aug 03, 2020
Maybe u need to hire a real programmer


It's clear you have failed yourself
Re: Please How Can I Integrate Paystack Payment On My Phonegap App by tensazangetsu20(m): 10:30pm On Aug 03, 2020
Message them on twitter they would help you out.
Re: Please How Can I Integrate Paystack Payment On My Phonegap App by Powerdesign: 11:57am On Aug 04, 2020
Bonatheripper:
Maybe u need to hire a real programmer


It's clear you have failed yourself
That's mean
Re: Please How Can I Integrate Paystack Payment On My Phonegap App by adelnehis(m): 3:06pm On Aug 04, 2020
Do people still use phonegap?
What happened to Android studio?
Paystack integration is easy on Android studio it worked for me on the first try
Maybe it's a compatibility issue
1 Reply

How Can I Integrate Paystack In Mobile App • Abuja Laravel, Vue, Phonegap Programmer Desperate For A Job • Android Development With PHONEGAP(HTML, CSS & JAVASCRIPT) • 2 • 3 • 4

How To Add Tooltips To Magento 2 Forms In Blue Form Builder? • Annual Fee For Maintaining Domain Name • Java Vs Python: Which Programming Language Should You Learn?