includes/abstracts/abstract-wc-payment-gateway.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 181-183 (lines=3) @@ | 
                                                            
                                    | 178 |  | 			$return_url = wc_get_endpoint_url( 'order-received', '', wc_get_page_permalink( 'checkout' ) ); | 
                                                            
                                    | 179 |  | 		} | 
                                                            
                                    | 180 |  |  | 
                                                            
                                    | 181 |  | 		if ( is_ssl() || get_option('woocommerce_force_ssl_checkout') == 'yes' ) { | 
                                                            
                                    | 182 |  | 			$return_url = str_replace( 'http:', 'https:', $return_url ); | 
                                                            
                                    | 183 |  | 		} | 
                                                            
                                    | 184 |  |  | 
                                                            
                                    | 185 |  | 		return apply_filters( 'woocommerce_get_return_url', $return_url, $order ); | 
                                                            
                                    | 186 |  | 	} | 
                                                                        
                 
                                                            
                    
includes/wc-core-functions.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 1140-1145 (lines=6) @@ | 
                                                            
                                    | 1137 |  |  */ | 
                                                            
                                    | 1138 |  | function wc_get_checkout_url() { | 
                                                            
                                    | 1139 |  | 	$checkout_url = wc_get_page_permalink( 'checkout' ); | 
                                                            
                                    | 1140 |  | 	if ( $checkout_url ) { | 
                                                            
                                    | 1141 |  | 		// Force SSL if needed | 
                                                            
                                    | 1142 |  | 		if ( is_ssl() || 'yes' === get_option( 'woocommerce_force_ssl_checkout' ) ) { | 
                                                            
                                    | 1143 |  | 			$checkout_url = str_replace( 'http:', 'https:', $checkout_url ); | 
                                                            
                                    | 1144 |  | 		} | 
                                                            
                                    | 1145 |  | 	} | 
                                                            
                                    | 1146 |  |  | 
                                                            
                                    | 1147 |  | 	return apply_filters( 'woocommerce_get_checkout_url', $checkout_url ); | 
                                                            
                                    | 1148 |  | } | 
                                                                        
                 
                                                            
                    
includes/class-wc-order.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 1101-1103 (lines=3) @@ | 
                                                            
                                    | 1098 |  | 	public function get_checkout_payment_url( $on_checkout = false ) { | 
                                                            
                                    | 1099 |  | 		$pay_url = wc_get_endpoint_url( 'order-pay', $this->get_id(), wc_get_page_permalink( 'checkout' ) ); | 
                                                            
                                    | 1100 |  |  | 
                                                            
                                    | 1101 |  | 		if ( 'yes' == get_option( 'woocommerce_force_ssl_checkout' ) || is_ssl() ) { | 
                                                            
                                    | 1102 |  | 			$pay_url = str_replace( 'http:', 'https:', $pay_url ); | 
                                                            
                                    | 1103 |  | 		} | 
                                                            
                                    | 1104 |  |  | 
                                                            
                                    | 1105 |  | 		if ( $on_checkout ) { | 
                                                            
                                    | 1106 |  | 			$pay_url = add_query_arg( 'key', $this->get_order_key(), $pay_url ); |