npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

how do i get receipt of a user with android device when I am using the in-app-purchase npm

how do i get receipt of a user with android device when I am using the in-app-purchase npm?
to fill up the data in this json?
{
packageName: ‘The packge name of the item purchased’,
productId: ‘The product ID of the item purchased’,
purchaseToken: ‘PurchaseToken of the receipt from Google’,
subscription: true/false // if the receipt is a subscription, then true
}