1.0.8 • Published 5 years ago
bfc-paypal-lib v1.0.8
bfc-paypal-lib
How to use
<script src="https://unpkg.com/bfc-paypal-lib@latest/dist/umd.min.js"></script>
<div id="paypal-buttons"></div>
bfc.paypal.load({
clientId: 'sb',
currency: 'USD',
elementId: 'paypal-buttons',
style: {
label: 'pay',
size: 'responsive',
color: 'black'
},
purchase: {
description: 'A purchase here',
items: [{
name: 'Item A',
quantity: 2,
value: 2.47
}, {
name: 'Item B',
quantity: 1,
value: 6.25
}]
}
}, {
onCreateOrder: () => { return null; },
onApprove: (details) => { },
onCancel: (e) => { },
onError: (e) => { }
});