₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,326,066 members, 8,424,818 topics. Date: Thursday, 11 June 2026 at 04:44 PM

Toggle theme

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

Nairaland ForumScience/TechnologyProgrammingPlease How Can I Integrate Paystack Payment On My Phonegap App (367 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 AppAbuja Laravel, Vue, Phonegap Programmer Desperate For A JobAndroid Development With PHONEGAP(HTML, CSS & JAVASCRIPT)234

[2021] Original New Miracle Thunder DongleLearning Partner(s)How Iot And Chatbots Are Driving Innovation In Software Development