https://www.academia.edu/
そこでは見るだけで使えません。
購入ご希望の方はPaypalで購入してください。
<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();<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&enable-funding=venmo¤cy=USD"
data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units:
[{"description":"アブラハムの使った古代バビロニアの文字 楔形文字 フォントライブラリー付。パソコンにインストールして使えます。
","amount":{"currency_code":"USD","value":176.6,"breakdown":{"item_total":{"currency_code":"USD","value":145},"shipping":{"currency_code":"USD","value":20},"tax_total":{"currency_code":"USD","value":11.6}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();
</script>
</script>
</script>
</script>
</script>
</script>
</script>
</script>
</script>
</script>
</script>
</script>
</script>
</script>
</script>
</script>
</script>
</script>
</script>