Szybka płatność

Zapłać depozyt za niestandardową wycieczkę lub usługę
Other Amount
Twój adres email:
'; }); // Scroll to the success message container of the button we are interacting with. const interacted_button_container_element = document.getElementById(elements_wrapper_wpapp_paypal_button_0); if (interacted_button_container_element) { interacted_button_container_element.scrollIntoView({ behavior: 'smooth', block: 'start' }); } return; } } else if (error_detail?.issue === "INSTRUMENT_DECLINED") { // Recoverable INSTRUMENT_DECLINED -> call actions.restart() console.log('Recoverable INSTRUMENT_DECLINED error. Calling actions.restart()'); return actions.restart(); } else if ( error_msg && error_msg.trim() !== '' ) { //Our custom error message from the server. console.error('Error occurred during PayPal checkout process.'); console.error( error_msg ); alert( error_msg ); } else { // Other non-recoverable errors -> Show a failure message console.error('Non-recoverable error occurred during PayPal checkout process.'); console.error( error_detail ); //alert('Unexpected error occurred with the transaction. Enable debug logging to get more details.\n\n' + JSON.stringify(error_detail)); } //Return the button and the spinner back to their orignal display state. pp_button_container.style.display = 'block'; // Show the buttons pp_button_spinner_container.style.display = 'none'; // Hide the spinner } catch (error) { console.error(error); alert('PayPal returned an error! Transaction could not be processed. Enable the debug logging feature to get more details...\n\n' + JSON.stringify(error)); } } function onErrorHandler(err) { console.error('An error prevented the user from checking out with PayPal. ' + JSON.stringify(err)); alert( 'Error occurred during PayPal checkout process.\n\n' + JSON.stringify(err) ); } function onCancelHandler (data) { console.log('Checkout operation cancelled by the customer.'); //Return to the parent page which the button does by default. } });