HMS-Core / hms-react-native-plugin

This repo contains all of React-Native HMS plugins.
https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin?ha_source=hms1
Apache License 2.0
240 stars 68 forks source link

In App Payment #185

Closed UzairSoken closed 2 years ago

UzairSoken commented 2 years ago

I am integrating Huawei in app payment module in my react native application, I have followed all the guidelines for setup. Every thing is going smooth but when i try to call a method it returns error.

  HMSIapModule.isSandboxActivated()
        .then((isSandboxActivatedResult) => {
          console.log(JSON.stringify(isSandboxActivatedResult), 'result');
        })
        .catch((err) => {
          console.log(JSON.stringify(err), 'err');
        });

I have also implemented different methods of this module but it gives the same error every time. I have also searched for the status code of error in Huawei but it not giving any complete guideline to resolve it.

Expected behavior It should give success for further procceseing.

Current behavior What actually happened?

Screenshots

Logs {"statusCode":907135000,"isSuccess":Screenshot 2022-04-22 at 1 25 35 PM}

Environment React Native Android

i01000101 commented 2 years ago

Hi @UzairSoken,

According to our tests your issue is related to AppGallery Connect Configuration. Please make sure you put the agconnect-services.json file in the right directory.

Also you can check this blog.

Thank you for your interest in our plugins.