PayPal\Service\PayPalAPIInterfaceServiceService::UpdateAuthorization PHP Méthode

UpdateAuthorization() public méthode

Service Call: UpdateAuthorization
public UpdateAuthorization ( UpdateAuthorizationReq $updateAuthorizationReq, mixed $apiCredential = null ) : UpdateAuthorizationResponseType
$updateAuthorizationReq PayPal\PayPalAPI\UpdateAuthorizationReq
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Résultat PayPal\PayPalAPI\UpdateAuthorizationResponseType
    public function UpdateAuthorization($updateAuthorizationReq, $apiCredential = null)
    {
        $apiContext = new PPApiContext($this->config);
        $handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION));
        $this->setStandardParams($updateAuthorizationReq->UpdateAuthorizationRequest);
        $ret = new UpdateAuthorizationResponseType();
        $resp = $this->call('PayPalAPIAA', 'UpdateAuthorization', $updateAuthorizationReq, $apiContext, $handlers);
        $ret->init(PPUtils::xmlToArray($resp));
        return $ret;
    }