original_string: public function verify(Payload $payload)
      {
          $response = $this->service->call($payload);
  
          $string = $response->getBody();
  
          $pattern = sprintf('/(%s|%s)/', self::IPN_VERIFIED, self::IPN_INVALID);
  
          if (!preg_match($pattern, $string)) {
              throw new UnexpectedValueException(
                  sprintf('Unexpected verification status encountered: %s', $string)
              );
          }
  
          return $response;
      }
code: public function verify(Payload $payload)
      {
          $response = $this->service->call($payload);
  
          $string = $response->getBody();
  
          $pattern = sprintf('/(%s|%s)/', self::IPN_VERIFIED, self::IPN_INVALID);
  
          if (!preg_match($pattern, $string)) {
              throw new UnexpectedValueException(
                  sprintf('Unexpected verification status encountered: %s', $string)
              );
          }
  
          return $response;
      }
code_tokens: public function verify ( Payload $ payload ) { $ response = $ this -> service -> call ( $ payload ) ; $ string = $ response -> getBody ( ) ; $ pattern = sprintf ( '/(%s|%s)/' , self :: IPN_VERIFIED , self :: IPN_INVALID ) ; if ( ! preg_match ( $ pattern , $ string ) ) { throw new UnexpectedValueException ( sprintf ( 'Unexpected verification status encountered: %s' , $ string ) ) ; } return $ response ; }
docstring: Send HTTP Request to PayPal & verfify payload.
  
  @param Payload $payload
  
  @return mixed
docstring_tokens: Send HTTP Request to PayPal & verfify payload .