Skip to content

Commit

Permalink
changes setup call
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro committed Aug 28, 2021
1 parent baa8797 commit f02da2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/purchaseTester/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class App extends React.Component {

async componentDidMount() {
Purchases.setDebugLogsEnabled(true);
Purchases.setup("api_key");
Purchases.setup({apiKey: "api_key", useAmazon: true});
try {
const purchaserInfo = await Purchases.getPurchaserInfo();
if (typeof purchaserInfo.entitlements.active.pro_cat !== "undefined") {
Expand Down

0 comments on commit f02da2d

Please sign in to comment.