public function captureGivenAuthRequest($hash_in)
 {
     $hash_out = array('orderId' => Checker::requiredField($hash_in['orderId']), 'authInformation' => XmlFields::authInformation($hash_in['authInformation']), 'amount' => Checker::requiredField($hash_in['amount']), 'orderSource' => Checker::requiredField($hash_in['orderSource']), 'billToAddress' => XmlFields::contact($hash_in['billToAddress']), 'shipToAddress' => XmlFields::contact($hash_in['shipToAddress']), 'card' => XmlFields::cardType($hash_in['card']), 'token' => XmlFields::cardTokenType($hash_in['token']), 'paypage' => XmlFields::cardPaypageType($hash_in['paypage']), 'customBilling' => XmlFields::customBilling($hash_in['customBilling']), 'taxBilling' => XmlFields::taxBilling($hash_in['taxBilling']), 'billMeLaterRequest' => XmlFields::billMeLaterRequest($hash_in['billMeLaterRequest']), 'enhancedData' => XmlFields::enhancedData($hash_in['enhancedData']), 'processingInstructions' => XmlFields::processingInstructions($hash_in['processingInstructions']), 'pos' => XmlFields::pos($hash_in['pos']), 'amexAggregatorData' => XmlFields::amexAggregatorData($hash_in['amexAggregatorData']));
     $choice_hash = array($hash_out['card'], $hash_out['token'], $hash_out['paypage']);
     $captureGivenAuthResponse = LitleOnlineRequest::processRequest($hash_out, $hash_in, 'captureGivenAuth', $choice_hash);
     return $captureGivenAuthResponse;
 }
Exemplo n.º 2
0
 public function captureGivenAuthRequest($hash_in)
 {
     $hash_out = array('orderId' => Checker::requiredField(XmlFields::returnArrayValue($hash_in, 'orderId')), 'authInformation' => XmlFields::authInformation(XmlFields::returnArrayValue($hash_in, 'authInformation')), 'amount' => Checker::requiredField(XmlFields::returnArrayValue($hash_in, 'amount')), 'surchargeAmount' => XmlFields::returnArrayValue($hash_in, 'surchargeAmount'), 'orderSource' => Checker::requiredField(XmlFields::returnArrayValue($hash_in, 'orderSource')), 'billToAddress' => XmlFields::contact(XmlFields::returnArrayValue($hash_in, 'billToAddress')), 'shipToAddress' => XmlFields::contact(XmlFields::returnArrayValue($hash_in, 'shipToAddress')), 'card' => XmlFields::cardType(XmlFields::returnArrayValue($hash_in, 'card')), 'token' => XmlFields::cardTokenType(XmlFields::returnArrayValue($hash_in, 'token')), 'paypage' => XmlFields::cardPaypageType(XmlFields::returnArrayValue($hash_in, 'paypage')), 'mpos' => XmlFields::mposType(XmlFields::returnArrayValue($hash_in, 'mpos')), 'customBilling' => XmlFields::customBilling(XmlFields::returnArrayValue($hash_in, 'customBilling')), 'taxBilling' => XmlFields::taxBilling(XmlFields::returnArrayValue($hash_in, 'taxBilling')), 'billMeLaterRequest' => XmlFields::billMeLaterRequest(XmlFields::returnArrayValue($hash_in, 'billMeLaterRequest')), 'enhancedData' => XmlFields::enhancedData(XmlFields::returnArrayValue($hash_in, 'enhancedData')), 'processingInstructions' => XmlFields::processingInstructions(XmlFields::returnArrayValue($hash_in, 'processingInstructions')), 'pos' => XmlFields::pos(XmlFields::returnArrayValue($hash_in, 'pos')), 'amexAggregatorData' => XmlFields::amexAggregatorData(XmlFields::returnArrayValue($hash_in, 'amexAggregatorData')), 'merchantData' => XmlFields::merchantData(XmlFields::returnArrayValue($hash_in, 'merchantData')), 'debtRepayment' => XmlFields::returnArrayValue($hash_in, 'debtRepayment'));
     $choice_hash = array($hash_out['card'], $hash_out['token'], $hash_out['paypage'], $hash_out['mpos']);
     $captureGivenAuthResponse = $this->processRequest($hash_out, $hash_in, 'captureGivenAuth', $choice_hash);
     return $captureGivenAuthResponse;
 }
Exemplo n.º 3
0
 public static function createCaptureGivenAuthHash($hash_in)
 {
     $hash_out = array('orderId' => Checker::requiredField(XmlFields::returnArrayValue($hash_in, 'orderId')), 'id' => Checker::requiredField(XmlFields::returnArrayValue($hash_in, 'id')), 'authInformation' => XmlFields::authInformation(XmlFields::returnArrayValue($hash_in, 'authInformation')), 'amount' => Checker::requiredField(XmlFields::returnArrayValue($hash_in, 'amount')), 'secondaryAmount' => XmlFields::returnArrayValue($hash_in, 'secondaryAmount'), 'surchargeAmount' => XmlFields::returnArrayValue($hash_in, 'surchargeAmount'), 'orderSource' => Checker::requiredField(XmlFields::returnArrayValue($hash_in, 'orderSource')), 'billToAddress' => XmlFields::contact(XmlFields::returnArrayValue($hash_in, 'billToAddress')), 'shipToAddress' => XmlFields::contact(XmlFields::returnArrayValue($hash_in, 'shipToAddress')), 'card' => XmlFields::cardType(XmlFields::returnArrayValue($hash_in, 'card')), 'token' => XmlFields::cardTokenType(XmlFields::returnArrayValue($hash_in, 'token')), 'paypage' => XmlFields::cardPaypageType(XmlFields::returnArrayValue($hash_in, 'paypage')), 'customBilling' => XmlFields::customBilling(XmlFields::returnArrayValue($hash_in, 'customBilling')), 'taxBilling' => XmlFields::taxBilling(XmlFields::returnArrayValue($hash_in, 'taxBilling')), 'billMeLaterRequest' => XmlFields::billMeLaterRequest(XmlFields::returnArrayValue($hash_in, 'billMeLaterRequest')), 'enhancedData' => XmlFields::enhancedData(XmlFields::returnArrayValue($hash_in, 'enhancedData')), 'processingInstructions' => XmlFields::processingInstructions(XmlFields::returnArrayValue($hash_in, 'processingInstructions')), 'pos' => XmlFields::pos(XmlFields::returnArrayValue($hash_in, 'pos')), 'amexAggregatorData' => XmlFields::amexAggregatorData(XmlFields::returnArrayValue($hash_in, 'amexAggregatorData')), 'merchantData' => XmlFields::merchantData(XmlFields::returnArrayValue($hash_in, 'merchantData')), 'debtRepayment' => XmlFields::returnArrayValue($hash_in, 'debtRepayment'));
     return $hash_out;
 }