Overview

Namespaces

  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
    • Tests
      • Batch
      • Cache
      • Common
        • Cache
        • Exception
      • Http
        • Curl
        • Exception
        • Message
          • Header
      • Inflection
      • Iterator
      • Log
      • Message
      • Mock
      • Parser
        • Cookie
        • Message
      • Parsers
        • UriTemplate
      • Plugin
        • Async
        • Backoff
        • Cache
        • Cookie
          • CookieJar
        • CurlAuth
        • ErrorResponse
        • History
        • Log
        • Md5
        • Mock
        • Oauth
        • Redirect
      • Service
        • Builder
        • Command
          • LocationVisitor
            • Request
            • Response
        • Description
        • Exception
        • Mock
          • Command
            • Sub
          • Model
        • Resource
      • Stream
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • VivaPayments
      • Message
  • PHP

Classes

  • AbstractRestRequest
  • FetchTransactionsRequest
  • NativeAuthorizeRequest
  • NativePurchaseRequest
  • RedirectAuthorizeRequest
  • RedirectPurchaseRequest
  • RedirectResponse
  • RefundRequest
  • RestResponse
  • Overview
  • Namespace
  • Class
  • Tree

Class RedirectResponse

Viva Payments Redirect (REST) Response

This is the response class for Viva Payments Redirect requests.

Omnipay\Common\Message\AbstractResponse implements Omnipay\Common\Message\ResponseInterface
Extended by Omnipay\VivaPayments\Message\RestResponse
Extended by Omnipay\VivaPayments\Message\RedirectResponse implements Omnipay\Common\Message\RedirectResponseInterface
Namespace: Omnipay\VivaPayments\Message
See: Omnipay\VivaPayments\RestGateway
Located at Message/RedirectResponse.php
Methods summary
public
# __construct( Omnipay\Common\Message\RequestInterface $request, mixed $data, $statusCode = 200, $baseEndpoint = "http://demo.vivapayments.com" )

Constructor

Constructor

Parameters

$request
the initiating request.
$data
$statusCode
$baseEndpoint

Overrides

Omnipay\VivaPayments\Message\RestResponse::__construct()
public boolean
# isRedirect( )

Does the response require a redirect?

Does the response require a redirect?

Returns

boolean

Overrides

Omnipay\VivaPayments\Message\RestResponse::isRedirect()

Implementation of

Omnipay\Common\Message\ResponseInterface::isRedirect()
public string
# getRedirectUrl( )

Gets the redirect target url.

Gets the redirect target url.

Returns

string

Implementation of

Omnipay\Common\Message\RedirectResponseInterface::getRedirectUrl()
public string
# getRedirectMethod( )

Get the required redirect method (either GET or POST).

Get the required redirect method (either GET or POST).

Returns

string

Implementation of

Omnipay\Common\Message\RedirectResponseInterface::getRedirectMethod()
public array
# getRedirectData( )

Gets the redirect form data array, if the redirect method is POST.

Gets the redirect form data array, if the redirect method is POST.

Returns

array

Implementation of

Omnipay\Common\Message\RedirectResponseInterface::getRedirectData()
Methods inherited from Omnipay\VivaPayments\Message\RestResponse
getCode(), getMessage(), getTransactionReference(), isSuccessful()
Methods inherited from Omnipay\Common\Message\AbstractResponse
getData(), getRedirectResponse(), getRequest(), getTransactionId(), isCancelled(), isPending(), isTransparentRedirect(), redirect()
Properties summary
protected string $baseEndpoint
#
Properties inherited from Omnipay\VivaPayments\Message\RestResponse
$statusCode
Properties inherited from Omnipay\Common\Message\AbstractResponse
$data, $request
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen