paystack-android icon indicating copy to clipboard operation
paystack-android copied to clipboard

Charge error: co.paystack.android.exceptions.ChargeException: Unknown Error

Open FoamStudio opened this issue 4 years ago • 3 comments

I kept getting this error when I tried charging my card on live environment. Im using live key for both server side and client (See below screenshots)

Error gotten: co.paystack.android.exceptions.ChargeException: Unknown Error

PS: I'm charging One Naira (1) can that be the cause? Screenshot 2021-07-27 at 22 57 12 Screenshot 2021-07-27 at 22 59 00

FoamStudio avatar Jul 27 '21 22:07 FoamStudio

@FoamStudio you should only use your public key with this library. Your secret key is only safe for use in serverside environments. The public key begins with pk_live.

I'll do some more digging around other reasons why you're seeing an Unknown Error message

michael-paystack avatar Jul 28 '21 11:07 michael-paystack

@michael-paystack Thanks for the reply. Sure I'm using only the pk_live for the client-side only. The sk is for the server side. I will be waiting for your swift response cause it was working for months until now.

PS: The app is already live and people are unable to make payment cause of this. Please treat as urgent. Thank you.

FoamStudio avatar Jul 28 '21 12:07 FoamStudio

I was able to charge for android when i updated the sdk from 3.1.2 to 3.1.3 but IOS still gives Unknown error.

FoamStudio avatar Jul 29 '21 05:07 FoamStudio

Closing this because it's had no activity for years. @FoamStudio please file an issue here if iOS is still a problem

michael-paystack avatar Apr 20 '23 07:04 michael-paystack