Skip to content

Instantly share code, notes, and snippets.

@scottopolis
Last active April 15, 2020 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottopolis/19fcdb3fc95c8bdfa455744b817fdace to your computer and use it in GitHub Desktop.
Save scottopolis/19fcdb3fc95c8bdfa455744b817fdace to your computer and use it in GitHub Desktop.
AppPresser In App Purchase Page
<!-- add this code to a custom HTML page to create a form that allows your users to purchase -->
<div padding>
<h2>Purchase</h2>
<p>For just $.99 per month, get access to premium content. Your subscription will automatically renew, cancel any time.</p>
<p>Enter your information below and click subscribe. By subscribing, you agree to the <a href="https://mysite.com/terms" target="_blank">terms of service.</a></p>
<p>Existing users, enter your username and password. New users, make up a username and password you will use to login.</p>
<in-app-purchase isSubscription="true" productId="membersubscription" secret="XXXXXXXXXXXXXXXXX" opens="4"></in-app-purchase>
<hr>
<h3>Already purchased?</h3>
<p>If you've already purchased but can't see your content, you may just need to login. Click the X at the top right of this page to close, then click log in.</p>
<p>If you got a new device and need to restore your purchase, fill out the fields above and check the "restore purchase" checkbox, then submit.</p>
<p>&nbsp;</p>
<p><strong>What you get:</strong></p>
<ul class="smaller-text">
<li>Access to premium content including videos, courses, and more</li>
<li>You will be charged $.99 each month until you cancel</li>
<li>Payment will be charged to account at confirmation of purchase</li>
<li>Subscription automatically renews unless auto-renew is turned off at least 24-hours before the end of the current period</li>
<li>Account will be charged for renewal within 24-hours prior to the end of the current period, and identify the cost of the renewal</li>
<li>Subscriptions may be managed by the user and auto-renewal may be turned off by going to the user's Account Settings after purchase</li>
<li><u><a (click)="iab('https://mysite.com/terms')">View terms of use</a></u></li>
<li><u><a (click)="iab('https://mysite.com/privacy')">View privacy policy</a></u></li>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment