add_action( 'woocommerce_before_pay_action', function( $order ){
$user_id = get_post_meta( $order->get_id() , '_wpo_order_creator', true); // created using Phone Orders plugin?
if($user_id AND $_POST['payment_method'] == "sagepaydirect" ){
add_filter( 'http_request_args', function($data, $url ){
parse_str($data["body"], $vars);
$vars["Apply3DSecure"] = 2; // Do not perform 3D-Secure checks for this transaction and always authorise.
$data["body"] = http_build_query( $vars );
return $data;
},10,2);
}
});SagePay: do not perform 3D-Secure checks and always authorise Print
Created by: Alex Prokaev
Modified on: Mon, 7 Oct, 2019 at 9:58 AM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.