• I’m currently integrating an API payment gateway to my current project. I’m kinda new to API integration. Managed to pass the information just using static info. How do I fetch the data like name, email from woocommerce. I’m using woocommerce subscription plugin https://woocommerce.com/products/woocommerce-subscriptions/

        $paydollar_args = array(
             'orderRef' => 		$orderRef,
             'amount' => 		$order -> order_total,			
             'merchantId' => 	$this -> merchant_id, 				 
             'payMethod' => 		$this -> pay_method, 
             'payType'	=> 		$this -> pay_type,
             'currCode' => 		$this -> curr_code,
             'lang' => 			$this -> language,			
             'successUrl' => 	$success_url,
             'failUrl' => 		$fail_url,
             'cancelUrl' => 		$cancel_url,						
             'secureHash' => 	$secureHash,
             'remark' => 		$remarks,
             'appId' => 			'SP',
             'schType' =>		'Month',
             'nSch'	=> 			1,
              'sMonth' =>			7,
             'sDay'	=>			8,
             'sYear'	=>			2016,
             'eMonth' =>			'',
             'eDay'	=>			'',
             'eYear'	=>			'',
             'name'	=>			'Genil Montilde',
             'email'	=>			'[email protected]',
             'schStatus' => 		'Active',
             'remark'	=>		'Testing Only',
             'SchPayAmt'	=>		$order -> order_total
    );
    • This topic was modified 8 years, 6 months ago by clestcruz.
    • This topic was modified 8 years, 6 months ago by clestcruz.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    Use wc_get_order function to retrieve the order, then most of the data can be accessed via the WC_Order class methods or properties. See the file or API docs for whats available, or refer to an existing extension for reference.

Viewing 1 replies (of 1 total)
  • The topic ‘Passing parameters of woocommerce subscription to payment gateway’ is closed to new replies.