paytabscom / paytabs-android-library-sample

Sample for Paytabs android library
MIT License
11 stars 7 forks source link

invalid merchant credentials #21

Closed FatimaSalman closed 3 years ago

FatimaSalman commented 3 years ago

I have this message error when call payment function "invalid merchant credentials"

I am use the last sdk 5.0.7 what is the solution for this issue ? thanks WhatsApp Image 2021-04-02 at 12 52 47 AM

mohamedkhairy953 commented 3 years ago

Often this message appears in case of invalid secret, email or invalid region please check these params.

Please contact @.*** to migrate to PT2 as Pt1 will be deprecated soon, and also they can help you to check the invalid credentials.

On Fri, Apr 2, 2021, 2:09 PM Fatima Salman @.***> wrote:

I have this message error when call payment function "invalid merchant credentials"

I am use the last sdk 5.0.7 what is the solution for this issue ? thanks [image: WhatsApp Image 2021-04-02 at 12 52 47 AM] https://user-images.githubusercontent.com/4582250/113414294-59d67780-93c5-11eb-8929-254bd4b194d9.jpeg

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/paytabscom/paytabs-android-library-sample/issues/21, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIGPXTAHPEIC7AHOHJOGNDTGWXXRANCNFSM42IYYYCA .

FatimaSalman commented 3 years ago

thanks for replay me, you mean contact with support to migrate pt2 as pt1

but I have account in pt2 == the secret key not found in the dashboard, how I get it ?

mohamedkhairy953 commented 3 years ago

When you contact @.*** they will provide you with the client key and the server key for the mobile sdk and follow this link to fully migrate. https://github.com/paytabscom/paytabs-android-library-sample/blob/PT2

On Fri, Apr 2, 2021, 4:52 PM Fatima Salman @.***> wrote:

thanks for replay me, you mean contact with support to migrate pt2 as pt1

but I have account in pt2 == the secret key not found in the dashboard, how I get it ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/paytabscom/paytabs-android-library-sample/issues/21#issuecomment-812564415, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIGPXWCQLBUB2VIXXANBXTTGXK37ANCNFSM42IYYYCA .

FatimaSalman commented 3 years ago

https://github.com/paytabscom/paytabs-android-library-sample/blob/PT2

this url not work == give me page not found

mohamedkhairy953 commented 3 years ago

https://github.com/paytabscom/paytabs-android-library-sample/tree/PT2

On Fri, Apr 2, 2021, 6:00 PM Fatima Salman @.***> wrote:

https://github.com/paytabscom/paytabs-android-library-sample/blob/PT2

this url not work == give me page not found

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/paytabscom/paytabs-android-library-sample/issues/21#issuecomment-812591653, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIGPXSEB2JJNKVBJD6RIGDTGXS23ANCNFSM42IYYYCA .

FatimaSalman commented 3 years ago

thanks you

FatimaSalman commented 3 years ago

I am download your code and change server key , client key and profile id with my data but this message appear (authorization failed. check authorization header) I don't know why? and how to solve it?

mohamedkhairy953 commented 3 years ago

Those might not be the valid keys for the mobile sdk. Please send your issue to @.*** with these credentials to check if they are the mobile keys.

On Sun, Apr 4, 2021, 8:57 PM Fatima Salman @.***> wrote:

I am download your code and change server key , client key and profile id with my data but this message appear (authorization failed. check authorization header) I don't know why? and how to solve it?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/paytabscom/paytabs-android-library-sample/issues/21#issuecomment-813083001, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIGPXU6PJJQPP3MES7OBOTTHCZB3ANCNFSM42IYYYCA .

FatimaSalman commented 3 years ago

I don't see in your code mobile key == just server and client

mohamedkhairy953 commented 3 years ago

Yes server key and client. Each merchant has two server keys and two client keys one pair for the web apis and the other for the mobile apis. So if you are getting invalid credentials this might be because you are not passing the mobile keys. @.*** can confirm this if that is the case.

On Sun, Apr 4, 2021, 9:36 PM Fatima Salman @.***> wrote:

I don't see in your code mobile key == just server and client

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/paytabscom/paytabs-android-library-sample/issues/21#issuecomment-813088198, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIGPXWVSYMU2H2EUJWYHHDTHC5SFANCNFSM42IYYYCA .

mohamedkhairy953 commented 3 years ago

customercare@Paytabs.com

mohamedkhairy953 commented 3 years ago

also, validate that you are using the correct merchantCountryCode

FatimaSalman commented 3 years ago

I contact with the support and now appear other errors and I don't see it in the logcat in android studio

WhatsApp Image 2021-04-05 at 12 37 49 PM

FatimaSalman commented 3 years ago

thanks you it's solved :) best wishes for you