Skip to content

Commit

Permalink
fix(validateReceiptAndroid): template literals properly
Browse files Browse the repository at this point in the history
  • Loading branch information
bang9 authored Oct 6, 2019
1 parent ac5d064 commit a892f45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,9 +619,9 @@ export const validateReceiptAndroid = async (
isSub?: boolean,
): Promise<object | false> => {
const type = isSub ? 'subscriptions' : 'products';
const url = `https://www.googleapis.com/androidpublisher/v2/applications'
+ '/${packageName}/purchases/${type}/${productId}'
+ '/tokens/${productToken}?access_token=${accessToken}`;
const url = 'https://www.googleapis.com/androidpublisher/v2/applications'
+ `/${packageName}/purchases/${type}/${productId}`
+ `/tokens/${productToken}?access_token=${accessToken}`;

const response = await fetch(url, {
method: 'GET',
Expand Down

0 comments on commit a892f45

Please sign in to comment.