@@ 367-374 (lines=8) @@ | ||
364 | ||
365 | $payment_request_type = wc_clean( $_POST['payment_request_type'] ); |
|
366 | ||
367 | if ( 'apple_pay' === $payment_request_type ) { |
|
368 | if ( WC_Stripe_Helper::is_wc_lt( '3.0' ) ) { |
|
369 | update_post_meta( $order_id, '_payment_method_title', 'Apple Pay (Stripe)' ); |
|
370 | } else { |
|
371 | $order->set_payment_method_title( 'Apple Pay (Stripe)' ); |
|
372 | $order->save(); |
|
373 | } |
|
374 | } |
|
375 | ||
376 | if ( 'payment_request_api' === $payment_request_type ) { |
|
377 | if ( WC_Stripe_Helper::is_wc_lt( '3.0' ) ) { |
|
@@ 376-383 (lines=8) @@ | ||
373 | } |
|
374 | } |
|
375 | ||
376 | if ( 'payment_request_api' === $payment_request_type ) { |
|
377 | if ( WC_Stripe_Helper::is_wc_lt( '3.0' ) ) { |
|
378 | update_post_meta( $order_id, '_payment_method_title', 'Chrome Payment Request (Stripe)' ); |
|
379 | } else { |
|
380 | $order->set_payment_method_title( 'Chrome Payment Request (Stripe)' ); |
|
381 | $order->save(); |
|
382 | } |
|
383 | } |
|
384 | } |
|
385 | ||
386 | /** |