Select Page
Methods Documentation
Edit on
Codepen.io

fastspring.builder.payment(“paypal”)

Launches the checkout and attempts to skip the Storefront and send the customer directly to PayPal.


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

Related Topics