Select Page
Actions Documentation
Edit on
Codepen.io

data-fsc-action=”PaypalCheckout”

will initiate checkout for the current session (optionally looking for the session id value in a data-fsc-session-value attribute placed into the same element) and attempt to skip the Storefront and send the customer directly to PayPal


x
25
 
1
<!--
2
    DEMO INFO:
3
    data-fsc-action="Checkout" will immediately initiate the checkout process for the
4
    current session.
5
-->
6
<button data-fsc-action="PaypalCheckout">
7
    Pay with PayPal
8
</button>
9
10
<!--
11
    DEMO SETUP
12
        - Initialize the Store Builder Library
13
        - Add item to cart
14
-->
15
<script
16
    id="fsc-api"
17
    src="https://sbl.onfastspring.com/sbl/1.0.1/fastspring-builder.min.js"
18
    type="text/javascript"
19
    data-storefront="fastspringexamples.test.onfastspring.com/popup-fastspringexamples"
20
    data-continuous=true>
21
</script>
22
23
<script type="text/javascript">
24
    fastspring.builder.add('phot-io-main-app');
25
</script>
1
 
1
1
 
1