Wizcorp / node-iap

In-app purchase validation for Apple, Google, Amazon, Roku
262 stars 92 forks source link

How to get google key object file? #78

Open zakiso opened 4 years ago

zakiso commented 4 years ago

Thanks a lot for this library. I use it for verify google play subscribe. But I don't know how to get the keyObject.

var payment = {
       //xxxxx
    keyObject: {}, // required, if google
};

Someone can help me? Thanks.

justinpage commented 4 years ago

@zakiso Without knowing too much about how your app is setup, you most likely will generate one in the https://console.cloud.google.com/iam-admin/serviceaccounts/ page.

But there's much more than just that, especially if your app isn't setup yet with Google Play. But if all that has been done, then generating a key file can be accomplished by visiting the above link.