You are here

ResponseInterface.php in Payment 8.2

File

src/Response/ResponseInterface.php
View source
<?php

namespace Drupal\payment\Response;


/**
 * Defines a payment response.
 */
interface ResponseInterface {

  /**
   * Gets the URL the calling code may redirect to after payment execution.
   *
   * @return \Drupal\Core\Url
   */
  public function getRedirectUrl();

  /**
   * Gets the response the calling code must return after payment execution.
   *
   * @return \Symfony\Component\HttpFoundation\Response
   */
  public function getResponse();

}

Interfaces

Namesort descending Description
ResponseInterface Defines a payment response.