Shopping Cart
Studio pick-up: Art Packs are $25/project
Shipping: Art Packs are $35; please allow 7 days from California.
Your Shopping Cart
Item Name | Quantity | Price | |
---|---|---|---|
$25.00 | |||
Total: | $25.00 | ||
// var wpspsc_pp_proceed = false; // var wpspsc_pp_actions; var wpspsc_cci_do_submit = true; paypal.Button.render({ env: 'production', style: { layout: 'horizontal', size: 'large', shape: 'rect', color: 'black' }, funding: { allowed: [paypal.FUNDING.CARD], disallowed: [] }, client: { sandbox: 'AUoYCoxASGlihhd8BacX3P_t_blyR6qRjBDElWB2h3CzO6qm2tQ7poKXt8P8Q67-g7ExybZ78zBzO18g', production: 'AdEr8sdAn_dSFvq1QW8dJ4vo-uQ3KJb_ea_-ZDBAu--RWcFRJ76m17zEZ-VrPLZ5KCmezWBY19_Ea0xh' }, validate: function (actions) { // wpspsc_pp_actions = actions; // wpspsc_pp_actions.disable(); }, onClick: function () { wpspsc_cci_do_submit = false; var res = jQuery('.wp_cart_checkout_button_1').triggerHandler('click'); if (typeof res === "undefined" || res) { // wpspsc_pp_actions.enable(); } else { // wpspsc_pp_actions.disable(); } wpspsc_cci_do_submit = true; }, payment: function (data, actions) { return actions.payment.create({ payment: { transactions: [{ amount: {total: '25.00', currency: 'USD', details: {subtotal: '25.00', shipping: '0.00'} }, item_list: { items: [{name: 'Watercolor Superhero', quantity: '1', price: '25.00', currency: 'USD'}] } }] }, meta: {partner_attribution_id: 'TipsandTricks_SP'} }); }, onError: function (error) { console.log(error); alert('Error occured during PayPal Smart Checkout process.\n\n' + error); }, onAuthorize: function (data, actions) { jQuery("[class^='wp-cart-paypal-button-container']").hide(); jQuery('.wp_cart_checkout_button').hide(); jQuery('.wpspsc-spinner-cont').css('display', 'inline-block'); return actions.payment.execute().then(function (data) { jQuery.post('https://masterworkskidsart.com/wp-admin/admin-ajax.php', {'action': 'wpspsc_process_pp_smart_checkout', 'wpspsc_payment_data': data}) .done(function (result) { if (result.success) { window.location.href = 'https://masterworkskidsart.com/registration-complete-thank-you/?reset_wp_cart=1'; } else { console.log(result); alert(result.errMsg) jQuery("[class^='wp-cart-paypal-button-container']").show(); if (jQuery('.wp_cart_checkout_button').data('wspsc-hidden') !== "1") { jQuery('.wp_cart_checkout_button').show(); } jQuery('.wp_cart_checkout_button').show(); jQuery('.wpspsc-spinner-cont').hide(); } }) .fail(function (result) { console.log(result); jQuery("[class^='wp-cart-paypal-button-container']").show(); if (jQuery('.wp_cart_checkout_button').data('wspsc-hidden') !== "1") { jQuery('.wp_cart_checkout_button').show(); } jQuery('.wpspsc-spinner-cont').hide(); alert('HTTP error occured during payment process:' + ' ' + result.status + ' ' + result.statusText); }); }); } }, '.wp-cart-paypal-button-container-1');
|