<div id=”smart-button-container”>

<div style=”text-align: center;”>

<div id=”paypal-button-container”></div>

</div>

</div>

<script src=”https://www.paypal.com/sdk/js?client-id=sb&currency=JPY” data-sdk-integration-source=”button-factory”></script>

<script>

function initPayPalButton() {

paypal.Buttons({

style: {

shape: ‘rect’,

color: ‘blue’,

layout: ‘vertical’,

label: ‘pay’,

},


createOrder: function(data, actions) {

return actions.order.create({

purchase_units: [{“description”:”ファイターズ鎌ケ谷の会年会費(大人)”,”amount”:{“currency_code”:”JPY”,”value”:2500}}]

});

},


onApprove: function(data, actions) {

return actions.order.capture().then(function(details) {

alert(‘Transaction completed by ‘ + details.payer.name.given_name + ‘!’);

});

},


onError: function(err) {

console.log(err);

}

}).render(‘#paypal-button-container’);

}

initPayPalButton();

</script>

<div id=”smart-button-container”>

<div style=”text-align: center;”>

<div id=”paypal-button-container”></div>

</div>

</div>

<script src=”https://www.paypal.com/sdk/js?client-id=sb&currency=JPY” data-sdk-integration-source=”button-factory”></script>

<script>

function initPayPalButton() {

paypal.Buttons({

style: {

shape: ‘rect’,

color: ‘blue’,

layout: ‘vertical’,

label: ‘pay’,

},


createOrder: function(data, actions) {

return actions.order.create({

purchase_units: [{“description”:”ファイターズ鎌ケ谷の会年会費(子供)”,”amount”:{“currency_code”:”JPY”,”value”:1000}}]

});

},


onApprove: function(data, actions) {

return actions.order.capture().then(function(details) {

alert(‘Transaction completed by ‘ + details.payer.name.given_name + ‘!’);

});

},


onError: function(err) {

console.log(err);

}

}).render(‘#paypal-button-container’);

}

initPayPalButton();

</script>