T hild_terminatey[0mx`o@0 _apache_request_headerspmxo@p=apache_response_headers0!0mxo0!׬#mxo0qules/ioncube_loader_lin_7.3.so&f?"g?"g?"f?"f?"f?"@g?"Pg?"`g?"f?"f?"f?"f?" g?"0g?"g?"pg?"g?"g?"@`"" |e"`a"`"P`"?"."8&8vN> " /opt/plesk/php/7.3/lib64/php/modules/ioncube_loader_lin_ Psk/php/7.3/lib64/php/modulesioncube_loader_lin_7.3.sop`&@&&&&&@&&"ui ""ii ""ii ""ui u"p00'Y|curl4&P 0!!!ō! !U!0(0 NHBw curl_initA] curl_copy_handle@APO+" +"?""e#"pt"t"'"'"'"t"?"@sk/php/7.3/lib64/php/modules/opcache.sop& 0""""н"@"P"`"""P"`"@" "0"p"""""p""""@!!@`!!4!`2;!!x\"0!&xv>  _fields = require( WC_STRIPE_PLUGIN_PATH . '/includes/admin/stripe-giropay-settings.php' ); } /** * Payment form on checkout page */ public function payment_fields() { global $wp; $user = wp_get_current_user(); $total = WC()->cart->total; $description = $this->get_description(); // If paying from order, we need to get total from order not cart. if ( isset( $_GET['pay_for_order'] ) && ! empty( $_GET['key'] ) ) { $order = wc_get_order( wc_clean( $wp->query_vars['order-pay'] ) ); $total = $order->get_total(); } if ( is_add_payment_method_page() ) { $pay_button_text = __( 'Add Payment', 'woocommerce-gateway-stripe' ); $total = ''; } else { $pay_button_text = ''; } echo '
'; if ( $description ) { echo apply_filters( 'wc_stripe_description', wpautop( wp_kses_post( $description ) ), $this->id ); } echo '
'; } /** * Creates the source for charge. * * @since 4.0.0 * @version 4.0.0 * @param object $order * @return mixed */ public function create_source( $order ) { $currency = $order->get_currency(); $return_url = $this->get_stripe_return_url( $order ); $post_data = array(); $post_data['amount'] = WC_Stripe_Helper::get_stripe_amount( $order->get_total(), $currency ); $post_data['currency'] = strtolower( $currency ); $post_data['type'] = 'giropay'; $post_data['owner'] = $this->get_owner_details( $order ); $post_data['redirect'] = array( 'return_url' => $return_url ); if ( ! empty( $this->statement_descriptor ) ) { $post_data['statement_descriptor'] = WC_Stripe_Helper::clean_statement_descriptor( $this->statement_descriptor ); } WC_Stripe_Logger::log( 'Info: Begin creating Giropay source' ); return WC_Stripe_API::request( apply_filters( 'wc_stripe_giropay_source', $post_data, $order ), 'sources' ); } /** * Process the payment * * @param int $order_id Reference. * @param bool $retry Should we retry on fail. * @param bool $force_save_source Force payment source to be saved. * * @throws Exception If payment will not be accepted. * * @return array|void */ public function process_payment( $order_id, $retry = true, $force_save_source = false ) { try { $order = wc_get_order( $order_id ); // This will throw exception if not valid. $this->validate_minimum_order_amount( $order ); // This comes from the create account checkbox in the checkout page. $create_account = ! empty( $_POST['createaccount'] ) ? true : false; if ( $create_account ) { $new_customer_id = $order->get_customer_id(); $new_stripe_customer = new WC_Stripe_Customer( $new_customer_id ); $new_stripe_customer->create_customer(); } $response = $this->create_source( $order ); if ( ! empty( $response->error ) ) { $order->add_order_note( $response->error->message ); throw new WC_Stripe_Exception( print_r( $response, true ), $response->error->message ); } $order->update_meta_data( '_stripe_source_id', $response->id ); $order->save(); WC_Stripe_Logger::log( 'Info: Redirecting to Giropay...' ); return array( 'result' => 'success', 'redirect' => esc_url_raw( $response->redirect->url ), ); } catch ( WC_Stripe_Exception $e ) { wc_add_notice( $e->getLocalizedMessage(), 'error' ); WC_Stripe_Logger::log( 'Error: ' . $e->getMessage() ); do_action( 'wc_gateway_stripe_process_payment_error', $e, $order ); if ( $order->has_status( array( 'pending', 'failed' ) ) ) { $this->send_failed_order_email( $order_id ); } return array( 'result' => 'fail', 'redirect' => '', ); } } } Blog | RÖTH & MYERS
Streaming killed the wire: Spotify and other wonderful music platforms in streaming (I)
rothandmyers October 25, 2019

Streaming killed the wire: Spotify and other wonderful music platforms in streaming (I)

Smartphones are always with us and they have become an extension of our bodies….

Read More
The benefits of listening to music
rothandmyers October 2, 2019

The benefits of listening to music

I’m sure you’ve heard it before: the health benefits of listening to music are…

Read More
How to differentiate audio formats
rothandmyers September 25, 2019

How to differentiate audio formats

Maybe you are familiar with audio systems, with the differences between different audio types...

Read More
Bring back to life your old audio devices with SoundHub
rothandmyers September 25, 2019

Bring back to life your old audio devices with SoundHub

It's just a prototype at the moment, but today we want to present our...

Read More