/** * Service Call: ExternalRememberMeOptOut * * @param ExternalRememberMeOptOutReq $externalRememberMeOptOutReq * * @return ExternalRememberMeOptOutResponseType * @throws APIException */ public function ExternalRememberMeOptOut($externalRememberMeOptOutReq, $apiUsername = null) { $this->setStandardParams($externalRememberMeOptOutReq->ExternalRememberMeOptOutRequest); $ret = new ExternalRememberMeOptOutResponseType(); $resp = $this->call("ExternalRememberMeOptOut", $externalRememberMeOptOutReq, $apiUsername); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }
/** * Service Call: ExternalRememberMeOptOut * @param ExternalRememberMeOptOutReq $externalRememberMeOptOutReq * @param mixed $apiCredential - Optional API credential - can either be * a username configured in sdk_config.ini or a ICredential object * created dynamically * @return ExternalRememberMeOptOutResponseType * @throws APIException */ public function ExternalRememberMeOptOut($externalRememberMeOptOutReq, $apiCredential = NULL) { $this->setStandardParams($externalRememberMeOptOutReq->ExternalRememberMeOptOutRequest); $ret = new ExternalRememberMeOptOutResponseType(); $resp = $this->call('PayPalAPIAA', 'ExternalRememberMeOptOut', $externalRememberMeOptOutReq, $apiCredential); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }
/** * Service Call: BMButtonSearch * @param BMButtonSearchReq $bMButtonSearchReq * @param mixed $apiCredential - Optional API credential - can either be * a username configured in sdk_config.ini or a ICredential object * created dynamically * @return BMButtonSearchResponseType * @throws APIException */ public function BMButtonSearch($bMButtonSearchReq, $apiCredential = NULL) { $this->setStandardParams($bMButtonSearchReq->BMButtonSearchRequest); $ret = new BMButtonSearchResponseType(); $resp = $this->call('PayPalAPI', 'BMButtonSearch', $bMButtonSearchReq, $apiCredential); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }
/** * Service Call: ExternalRememberMeOptOut * @param ExternalRememberMeOptOutReq $externalRememberMeOptOutReq * @param mixed $apiCredential - Optional API credential - can either be * a username configured in sdk_config.ini or a ICredential object * created dynamically * @return ExternalRememberMeOptOutResponseType * @throws APIException */ public function ExternalRememberMeOptOut($externalRememberMeOptOutReq, $apiCredential = NULL) { $this->setStandardParams($externalRememberMeOptOutReq->ExternalRememberMeOptOutRequest); $apiContext = new PPApiContext($this->config); $handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION)); $ret = new ExternalRememberMeOptOutResponseType(); $resp = $this->call('PayPalAPIAA', 'ExternalRememberMeOptOut', $externalRememberMeOptOutReq, $apiContext, $handlers); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }
/** * Service Call: BMButtonSearch * @param BMButtonSearchReq $bMButtonSearchReq * @param mixed $apiCredential - Optional API credential - can either be * a username configured in sdk_config.ini or a ICredential object * created dynamically * @return BMButtonSearchResponseType * @throws APIException */ public function BMButtonSearch($bMButtonSearchReq, $apiCredential = NULL) { $this->setStandardParams($bMButtonSearchReq->BMButtonSearchRequest); $ret = new BMButtonSearchResponseType(); $apiContext = new PPApiContext($this->config); $handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION)); $resp = $this->call('PayPalAPI', 'BMButtonSearch', $bMButtonSearchReq, $apiContext, $handlers); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }
/** * @test */ function testSoapFaultXml() { $xml = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body> <soapenv:Fault xmlns:axis2ns237961="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>axis2ns237961:Server</faultcode><faultstring>Authentication failed. API credentials are incorrect.</faultstring><detail><ns3:FaultMessage xmlns:ns3="http://svcs.paypal.com/types/common" xmlns:ns2="http://svcs.paypal.com/types/ap"><responseEnvelope><timestamp>2013-09-03T04:36:14.931-07:00</timestamp><ack>Failure</ack><correlationId>ebeb480862a99</correlationId><build>6941298</build></responseEnvelope><error><errorId>520003</errorId><domain>PLATFORM</domain><subdomain>Application</subdomain><severity>Error</severity><category>Application</category><message>Authentication failed. API credentials are incorrect.</message></error></ns3:FaultMessage></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>'; $ret = PPUtils::xmlToArray($xml); $this->assertEquals("soapenv:Fault", $ret[0]['name']); }
/** * Service Call: BMButtonSearch * @param BMButtonSearchReq $bMButtonSearchReq * @return BMButtonSearchResponseType * @throws APIException */ public function BMButtonSearch($bMButtonSearchReq, $apiUsername = null) { $this->setStandardParams($bMButtonSearchReq->BMButtonSearchRequest); $ret = new BMButtonSearchResponseType(); $resp = $this->call("BMButtonSearch", $bMButtonSearchReq, $apiUsername); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }