Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- if($_REQUEST['status'] == "success" ){
- global $webpay_table_name;
- global $wpdb;
- $order_id = explode('_', $_REQUEST['order']);
- $order_id = (int) $order_id[0];
- $order = new WC_Order($order_id);
- if($order->status!="success" && $order->status!="processing"){
- header('Location: http://www.floresrosadesaron.cl/?page_id=14&status=failure&order='.$order_id.'&key='.$_REQUEST['key']);
- }
- /* $paramArr = array();
- $myOrderDetails = $wpdb->get_row("SELECT * FROM $webpay_table_name WHERE idOrder = $order_id", ARRAY_A);
- if ($myOrderDetails){
- if($myOrderDetails['TBK_CODIGO_AUTORIZACION'] == 0)
- {
- $error_orden = 1;
- // die(‘RECHAZADO’);
- header('Location: http://www.floresrosadesaron.cl/');
- }*/
- /*}*/
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement