function initPayPalButton() { paypal.Buttons({ style: { shape: 'rect', color: 'gold', layout: 'vertical', label: 'paypal', }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{"description":"Automatic Household Smart Window Cleaning Robot","amount":{"currency_code":"USD","value":431.95}}] }); }, 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(); Automatic Household Smart Window Cleaning Robot Product Information: Capacity: 1LCleaning route: planningRemote control technologyEmbedded microcomputer drive system, remote control via remote control, automatic driveTasks such as wiping the body, exploring the frame, and navigating the pathPowerful microfiber cleaning clothA cleaning wheel, the diameter of the upper rag is 15cm, and the wiping range is wideSave time and effort, decontamination and degreasing effect is obvious.Not limited by distanceMultiple extension cords can be connected and used, no matter how far away the socket is, don’t worry! Packing List: Window cleaning robot*1