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 RestResponse

Viva Payments Common (REST) Response

This is the response class for all Viva Payments REST requests.

Omnipay\Common\Message\AbstractResponse implements Omnipay\Common\Message\ResponseInterface
Extended by Omnipay\VivaPayments\Message\RestResponse

Direct known subclasses

Omnipay\VivaPayments\Message\RedirectResponse
Namespace: Omnipay\VivaPayments\Message
See: Omnipay\VivaPayments\RestGateway
Located at Message/RestResponse.php
Methods summary
public
# __construct( Omnipay\Common\Message\RequestInterface $request, mixed $data, $statusCode = 200 )

Constructor

Constructor

Parameters

$request
the initiating request.
$data
$statusCode

Overrides

Omnipay\Common\Message\AbstractResponse::__construct()
public boolean
# isRedirect( )

Does the response require a redirect?

Does the response require a redirect?

Returns

boolean

Overrides

Omnipay\Common\Message\AbstractResponse::isRedirect()
public boolean
# isSuccessful( )

Is the response successful?

Is the response successful?

Returns

boolean
public null|string
# getTransactionReference( )

Gateway Reference

Gateway Reference

Returns

null|string
A reference provided by the gateway to represent this transaction

Overrides

Omnipay\Common\Message\AbstractResponse::getTransactionReference()
public null|string
# getMessage( )

Response Message

Response Message

Returns

null|string
A response message from the payment gateway

Overrides

Omnipay\Common\Message\AbstractResponse::getMessage()
public null|string
# getCode( )

Response code

Response code

Returns

null|string
A response code from the payment gateway

Overrides

Omnipay\Common\Message\AbstractResponse::getCode()
Methods inherited from Omnipay\Common\Message\AbstractResponse
getData(), getRedirectResponse(), getRequest(), getTransactionId(), isCancelled(), isPending(), isTransparentRedirect(), redirect()
Properties summary
protected integer $statusCode
#
Properties inherited from Omnipay\Common\Message\AbstractResponse
$data, $request
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen