includes/abstracts/abstract-wc-payment-gateway.php 1 location
|
@@ 151-153 (lines=3) @@
|
| 148 |
|
$return_url = wc_get_endpoint_url( 'order-received', '', wc_get_page_permalink( 'checkout' ) ); |
| 149 |
|
} |
| 150 |
|
|
| 151 |
|
if ( is_ssl() || get_option('woocommerce_force_ssl_checkout') == 'yes' ) { |
| 152 |
|
$return_url = str_replace( 'http:', 'https:', $return_url ); |
| 153 |
|
} |
| 154 |
|
|
| 155 |
|
return apply_filters( 'woocommerce_get_return_url', $return_url, $order ); |
| 156 |
|
} |
includes/class-wc-order.php 1 location
|
@@ 1043-1045 (lines=3) @@
|
| 1040 |
|
public function get_checkout_payment_url( $on_checkout = false ) { |
| 1041 |
|
$pay_url = wc_get_endpoint_url( 'order-pay', $this->get_id(), wc_get_page_permalink( 'checkout' ) ); |
| 1042 |
|
|
| 1043 |
|
if ( 'yes' == get_option( 'woocommerce_force_ssl_checkout' ) || is_ssl() ) { |
| 1044 |
|
$pay_url = str_replace( 'http:', 'https:', $pay_url ); |
| 1045 |
|
} |
| 1046 |
|
|
| 1047 |
|
if ( $on_checkout ) { |
| 1048 |
|
$pay_url = add_query_arg( 'key', $this->get_order_key(), $pay_url ); |
includes/wc-core-functions.php 1 location
|
@@ 885-890 (lines=6) @@
|
| 882 |
|
*/ |
| 883 |
|
function wc_get_checkout_url() { |
| 884 |
|
$checkout_url = wc_get_page_permalink( 'checkout' ); |
| 885 |
|
if ( $checkout_url ) { |
| 886 |
|
// Force SSL if needed |
| 887 |
|
if ( is_ssl() || 'yes' === get_option( 'woocommerce_force_ssl_checkout' ) ) { |
| 888 |
|
$checkout_url = str_replace( 'http:', 'https:', $checkout_url ); |
| 889 |
|
} |
| 890 |
|
} |
| 891 |
|
|
| 892 |
|
return apply_filters( 'woocommerce_get_checkout_url', $checkout_url ); |
| 893 |
|
} |