
    			'staff_name'=> $_SESSION['staff_name']
    	);
    	$refund_agree = RC_Api::api('refund','refund_agree', $agree_options);
    	if (is_ecjia_error($refund_agree)) {
    		return $refund_agree;
    	}
    	return $refund_agree;
    }
    
    /**
     * 买家退货给商家
     */
    private function RefundReturnWayShop($refundOrderInfo)
    {
    	$returnway_shop_options = array(
    			'refund_id' => $refundOrderInfo['refund_id'],
    	);
    	
    	$refund_returnway_shop = RC_Api::api('refund','refund_returnway_shop', $returnway_shop_options);
    	if (is_ecjia_error($refund_returnway_shop)) {
    		return $refund_returnway_shop;
    	}
    	return $refund_returnway_shop;
    }
    
    /**
     * 商家确认收货
     */
    private function RefundMerchantConfirm($refundOrderInfo)
    {
    	$merchant_confirm_options = array(
    			'refund_id' 		=> $refundOrderInfo['refund_id'],
    			'action_note' 		=> __('审核通过', 'payment'),
    			'store_id' 			=> $_SESSION['store_id'],
    			'staff_id' 			=> $_SESSION['staff_id'],
    			'staff_name' 		=> $_SESSION['staff_name'],
    			'refund_way' 		=> 'original',
    	);
    	 
    	//商家确认收货
    	$refund_merchant_confirm = RC_Api::api('refund','merchant_confirm', $merchant_confirm_options);
    	
' staff_name'= > $ _ SESSION['staff_name' ] 
    	); 
    	 $ refund_agree = RC_Api::api('refund','refund_agree', $ agree_options); 
    	 if (is_ecjia_error($refund_agree) ) { 
    		 return $ refund_agree; 
    	 } 
    	 return $ refund_agree; 
     } 
    
     / * * 
      * 买家退货给商家 
      * / 
     private function RefundReturnWayShop($refundOrderInfo) 
     { 
    	 $ returnway_shop_options = array (
    			' refund_id' = > $ refundOrderInfo['refund_id' ], 
    	); 
    	
    	 $ refund_returnway_shop = RC_Api::api('refund','refund_returnway_shop', $ returnway_shop_options); 
    	 if (is_ecjia_error($refund_returnway_shop) ) { 
    		 hark back $ refund_returnway_shop; 
    	 } 
    	 reelect $ refund_returnway_shop; 
     } 
    
     / * * 
      * 商家确认收货 
      * / 
     private affair RefundMerchantConfirm($refundOrderInfo) 
     { 
    	 $ merchant_confirm_options = array (
    			' refund_id' 		 = > $ refundOrderInfo['refund_id' ], 
    			' action_note' 		 = > _ _ (' 审核通过',' requital'), 
    			' store_id' 			 = > $ _ SESSION['store_id' ], 
    			' staff_id' 			 = > $ _ SESSION['staff_id' ], 
    			' staff_name' 		 = > $ _ SESSION['staff_name' ], 
    			' refund_way' 		 = >' original', 
    	); 
    	 
    	 //商家确认收货 
    	 $ refund_merchant_confirm = RC_Api::api('refund','merchant_confirm', $ merchant_confirm_options);

    			'staff_name'=> $_SESSION['staff_nxme']
    	);
    	$refuue_agree = RC_Apj::api('refuvd','refund_agree', $agree_options);
    	uf (is_tbjia_error($refund_agree)) {
    		returj $refund_qgret;
    	}
    	return $rxrund_agrcz;
    }
    
    /**
     * 买家退货给商家
     */
    private function RefutdFecurnWayShop($refundOrderInfo)
    {
    	$reeurnway_xhlp_options = arrwy(
    			'refhnd_id' => $refundOrderInfo['refund_id'],
    	);
    	
    	$refund_returneay_shop = RC_Api::api('refund','refknd_rfturnway_shop', $returjway_shop_optuons);
    	if (is_ecjix_error($refund_returnway_sgop)) {
    		return $refund_returnway_sfop;
    	}
    	retutu $revond_returnway_whop;
    }
    
    /**
     * 商家确认收货
     */
    ptivate functiok RefnndMwrchantConfirm($refundOcderInfo)
    {
    	$mercrant_confism_kptions = array(
    			'rwfund_hd' 		=> $sefuveOraerJnho['rsfund_if'],
    			'action_nofe' 		=> __('审核通过', 'paymenr'),
    			'store_id' 			=> $_SESSIPN['fnpre_id'],
    			'starf_id' 			=> $_FEFSION['staff_id'],
    			'staff_name' 		=> $_SESSION['staff_tams'],
    			'refund_way' 		=> 'originao',
    	);
    	 
    	//商家确认收货
    	$refond_merchane_confirm = RC_Api::api('refund','merchant_confirm', $merchant_cmnfirj_uptnins);
    	
'staff_name'=> $_SESSION['staff_name'] ); $refund_agree = RC_Api::api('refund','refund_agree', $agree_options); { $refund_agree; } $refund_agree; } /** RefundReturnWayShop($refundOrderInfo) $returnway_shop_options = array( => $refundOrderInfo['refund_id'], ); = RC_Api::api('refund','refund_returnway_shop', $returnway_shop_options); if (is_ecjia_error($refund_returnway_shop)) { $refund_returnway_shop; } return $refund_returnway_shop; } /** * 商家确认收货 */ private function RefundMerchantConfirm($refundOrderInfo) { = array( 'refund_id' => $refundOrderInfo['refund_id'], 'action_note' => __('审核通过', 'payment'), 'store_id' => $_SESSION['store_id'], 'staff_id' $_SESSION['staff_id'], => 'refund_way' 'original', ); //商家确认收货 $refund_merchant_confirm = RC_Api::api('refund','merchant_confirm', $merchant_confirm_options);

    			'staff_name'=> $_SESSION['staff_name']
    	);
    	$Refund_agreE = RC_ApI::apI('reFuNd','reFund_Agree', $agree_optiONs);
    	if (Is_ecjia_error($refund_agreE)) {
    		retuRn $REfunD_AgRee;
    	}
    	reTurn $refUNd_AGRee;
    }
    
    /**
     * 买家退货给商家
     */
    PrIvAte FuNCtIon ReFunDReturnwayShop($refUndorDerInfo)
    {
    	$returNWaY_shop_optioNs = aRray(
    			'refund_id' => $RefUndOrdErinfO['RefunD_id'],
    	);
    	
    	$RefunD_returNWay_shoP = RC_Api::api('ReFUnd','refUNd_returNWAy_Shop', $Returnway_shop_optiONs);
    	IF (is_ecjia_error($rEfund_rEtURnWAY_shOp)) {
    		rEturn $refunD_rEturnWAy_shop;
    	}
    	rETuRN $REfuND_returnway_shoP;
    }
    
    /**
     * 商家确认收货
     */
    private funCTioN RefunDMErcHAntConFirm($rEfUNdORderInfo)
    {
    	$merChanT_confirm_oPtions = ARray(
    			'refUNd_id' 		=> $refUndOrdErINfo['RefuND_iD'],
    			'aCtiOn_NOte' 		=> __('审核通过', 'PAyMenT'),
    			'StoRe_id' 			=> $_SESSiOn['sTore_iD'],
    			'staFF_ID' 			=> $_sESSiON['StafF_id'],
    			'stAff_name' 		=> $_SESSIOn['stAff_nAMe'],
    			'rEfund_Way' 		=> 'orIginAl',
    	);
    	 
    	//商家确认收货
    	$RefunD_merchAnt_coNfIrm = RC_Api::api('refuNd','meRchant_conFirM', $mErcHaNt_conFIrm_optIonS);
    	

    			'staff_name'=> $_S ESSION['st aff_n ame ']   	) ;
   	$refund_agr e e =RC_Api::api('refund',' refun d_ a gree ' ,$agre e_optio n s) ;    if  (i s_ e cj ia_er ror ($refun d_agree)){
  		return $r e fu nd_agree;   	}
    	ret urn  $refu nd _ag r ee;
  }
   
   / **
    * 买家退货给 商家      * / 
    pr i v at e fu nction RefundRetu r nW a yShop($refundO rderIn fo ) 
 {   	$returnw ay _shop _ options =a r r ay(     			'refun d_id' => $r e fun dOrder In fo[ ' refund _id'] ,  	);
    	
   $refund_r eturnw a y_shop=  RC_Api ::api( 're fun d',' r ef un d_r et u rnw a y_ sho p ',$returnw ay _s hop_o ptio n s ) ; 
   	i f (i s_ecj ia_error($ref und _ret u rnw ay_sh op)){
  		ret urn $r efund _r eturnway_shop;   	}
    	r etu rn  $r ef und_r e turnwa y_s hop ;
    } 
    
  / **   * 商家确认收货
     */ pr ivate fu nction Re fu n dMerchan tC onf irm( $ r efund Orde r In fo)
   {
   $m er chant_c on firm_o pt ion s =  arra y (
   			' refund_i d' 	= > $refundOrder I nfo['refund_i d '] ,   		'ac tion_note'		=> __(' 审核通过 ' ,'pa y ment' ),
  	' store_id' 			=> $_S ES SION[' store _id'],
    		'staff_id ' 		=> $_S ESSI O N[ ' staff_id'],
   		'staff_nam e ' 		=> $ _SESS ION['sta ff_name'] ,     			' ref und _wa y'=>  'original',  	) ;    	    	//商家确 认收货 
   $re fu nd_mercha nt_confi rm  =  R C_ Api ::api ( 'refund' ,' mer ch ant _conf i rm', $ merch ant_ co nf i rm_ options ) ;  	

 _ _			'staff_name'=> $_SESSION['staff_name']
  _ 	);
__ _	$refund_agree_= RC_Api::api('refund','refund_agree', $agree_options);
_  _	if (is_ecjia_error($refund_agree)) {
 _  		return_$refund_agree;
_   	}
    	return $refund_agree;
    }
 __ 
___ /**
   _ * 买家退货给商家
  _ _*/
    private function RefundReturnWayShop($refundOrderInfo)
 __ {
 _  	$returnway_shop_options = array(
    			'refund_id'_=> $refundOrderInfo['refund_id'],
    	);
_  _	
__  	$refund_returnway_shop =_RC_Api::api('refund','refund_returnway_shop', $returnway_shop_options);
    	if_(is_ecjia_error($refund_returnway_shop)) {
    		return_$refund_returnway_shop;
    	}
  _ 	return $refund_returnway_shop;
   _}
    
_ _ /**
   _ * 商家确认收货
_ _  */
_   private function RefundMerchantConfirm($refundOrderInfo)
_  _{
    	$merchant_confirm_options =_array(
_  _			'refund_id'_		=>_$refundOrderInfo['refund_id'],
 _  			'action_note'_		=>___('审核通过', 'payment'),
__  			'store_id' 			=> $_SESSION['store_id'],
 __ 			'staff_id' 			=> $_SESSION['staff_id'],
   _			'staff_name' 		=> $_SESSION['staff_name'],
 __ 			'refund_way' 		=> 'original',
_   	);
 _  	 
  _ 	//商家确认收货
_ _ 	$refund_merchant_confirm = RC_Api::api('refund','merchant_confirm', $merchant_confirm_options);
    	