PaystackHQ / paystack-android

Paystack SDK for Android. Accept payments on Android
Apache License 2.0
126 stars 101 forks source link

transaction.card.authenticate is not a function #80

Closed femotizo closed 4 years ago

femotizo commented 4 years ago

Good day, i am stuck while using paystack.js v2 .

Uncaught (in promise) TypeError: transaction.card.authenticate is not a function at submitFunction after switching to Live mode while using "Building your checkout form" v2 doc at https://developers.paystack.co/v2.0/docs/paystack-custom

find below the information from my chrome dev tools.

var validation = Paystack.Card.validate(card);

{"isValid":true,"result":{"number":true,"expiry":true,"cvv":true}}

var chargeResponse = await transaction.chargeCard();

{"status":"auth","message":"Please send PIN","data":{"auth":"pin"}}

const authenticationResponse = await transaction.card.authenticate(token);

Uncaught (in promise) TypeError: transaction.card.authenticate is not a function at submitFunction

Thank you.

steveamaza commented 4 years ago

Hey @femotizo. Any reason you're not using the SDK instead? Paystack JS is still in beta and not the best experience on Android

femotizo commented 4 years ago

Thank you @steveamaza, i was working on the web environment not Android.

can you suggest any other method / doc i can use to build custom checkout form.

steveamaza commented 4 years ago

Hi @femotizo, Paystack JS is still in beta so a lot keeps changing. Please send us a message on Payslack at https://slack.paystack.com so we can assist