Test Paypal Code

https://www.paypal.com/sdk/js?client-id=AdXj4ZdzOMvSdhwRieaHFXp8gdMcxq9YWi3IN0JevOAsdw0jL6Vd_lSB5IV-6hz6r4n4jIlvTBYfuiBZ&enable-funding=venmo&currency=USD function initPayPalButton() { paypal.Buttons({ style: { shape: ‘rect’, color: ‘gold’, layout: ‘vertical’, label: ‘buynow’, }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{“description”:”Comptia PENTEST + (PT0-002) Lab”,”amount”:{“currency_code”:”USD”,”value”:108,”breakdown”:{“item_total”:{“currency_code”:”USD”,”value”:109},”shipping”:{“currency_code”:”USD”,”value”:-1},”tax_total”:{“currency_code”:”USD”,”value”:0}}}}] }); }, 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 = ‘

Thank you for your payment!

‘; // Or go to another URL: actions.redirect(‘thank_you.html’); }); }, onError: function(err) { console.log(err); } }).render(‘#paypal-button-container’); } initPayPalButton();
https://www.paypal.com/sdk/js?client-id=AdXj4ZdzOMvSdhwRieaHFXp8gdMcxq9YWi3IN0JevOAsdw0jL6Vd_lSB5IV-6hz6r4n4jIlvTBYfuiBZ&enable-funding=venmo&currency=USD function initPayPalButton() { paypal.Buttons({ style: { shape: ‘rect’, color: ‘gold’, layout: ‘vertical’, label: ‘buynow’, }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{“description”:”Comptia PENTEST + (PT0-002) Lab”,”amount”:{“currency_code”:”USD”,”value”:108,”breakdown”:{“item_total”:{“currency_code”:”USD”,”value”:109},”shipping”:{“currency_code”:”USD”,”value”:-1},”tax_total”:{“currency_code”:”USD”,”value”:0}}}}] }); }, 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 = ‘

Thank you for your payment!

‘; // Or go to another URL: actions.redirect(‘thank_you.html’); }); }, onError: function(err) { console.log(err); } }).render(‘#paypal-button-container’); } initPayPalButton();

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s