Mr

by Craig Haywood

HTML

<h2>To Complete A Purchase</h2>
<p>You can use any date in the future for the card expiration date, and you can use any values for other purchase data such as your name, so long as you used the test card numbers shown below.</p>
<ul>
    <li>Card Number: 4242 4242 4242 4242</li>
    <li>CVV Code: *NJZZ</li>
</ul>

<!--
    Configure an add button to add an item to the cart.
-->
<button data-fsc-item-path-value='reallysmart-art-lifetime-membership' onclick="fastspring.builder.tag({'referrer':'557'})"; data-fsc-action="Add, Checkout">Checkout</button>

<!--
    DEMO EFFECTS
        - The below div will be updated to include the returned data from the data-popup-webhook-received
-->
<br /><br />Data returned: <div id="log"></div>

<!--
    DEMO SETUP
        - Initialize the Store Builder Library
-->
<script
    id="fsc-api"
    src="https://sbl.onfastspring.com/sbl/0.9.2/fastspring-builder.min.js"
    type="text/javascript"
    data-storefront="reallysmartart.test.onfastspring.com/popup-reallysmartart"
    data-popup-webhook-received="dataPopupWebhookReceived"
    data-continuous="true"
    data-popup-closed="dataPopupClosed">
</script>

<!--
    Initialize the cart for demo purposes
-->


<!--
    dataPopupWebhookReceived
        - In this example, it will write div with the id log with the returned data.
-->
<script>
    function dataPopupWebhookReceived(data) {
    window.productbought = true;
        window.saleid = data.id;
         document.getElementById("log").innerHTML = "<pre>"+window.saleid+"</pre>";
    }
</script>



<script>
        function dataPopupClosed(data) {
            if (window.productbought == true) {
                
                    location.replace("https://www.reallysmart.art/presetup.html?oid=" + window.saleid);
                
            }
        }
    </script>