This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Freemius PHP SDK needs to be installed | |
require_once dirname(__FILE__) . '/freemius/Freemius.php'; | |
// Set credentials | |
define( 'FS__API_SCOPE', 'developer' ); | |
define( 'FS__API_DEV_ID', 00000 ); | |
define( 'FS__API_PUBLIC_KEY', 'pk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx' ); | |
define( 'FS__API_SECRET_KEY', 'sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://checkout.freemius.com/checkout.min.js"></script> | |
<script> | |
var handler = FS.Checkout.configure({ | |
plugin_id: 'xxxxx', | |
plan_id: 'xxxxx', | |
public_key: 'pk_yyyyyyyyyyyyyyyyyy', | |
image: 'https://yyy.com/Logo-SVG.svg' | |
}); | |
jQuery('.purchase, a[href*="#purchase"').on('click', function (e) { |