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 AbstractRestRequest

Viva Payments Abstract REST Request

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

Omnipay\Common\Message\AbstractRequest implements Omnipay\Common\Message\RequestInterface
Extended by Omnipay\VivaPayments\Message\AbstractRestRequest

Direct known subclasses

Omnipay\VivaPayments\Message\FetchTransactionsRequest, Omnipay\VivaPayments\Message\NativePurchaseRequest, Omnipay\VivaPayments\Message\RedirectPurchaseRequest, Omnipay\VivaPayments\Message\RefundRequest

Indirect known subclasses

Omnipay\VivaPayments\Message\NativeAuthorizeRequest, Omnipay\VivaPayments\Message\RedirectAuthorizeRequest
Abstract
Namespace: Omnipay\VivaPayments\Message
See: Omnipay\VivaPayments\RestGateway
Link: http://www.paystream.com.au/developer-guides/
Located at Message/AbstractRestRequest.php
Methods summary
protected string
# getHttpMethod( )

Get HTTP Method.

Get HTTP Method.

This is nearly always POST but can be over-ridden in sub classes.

Returns

string
protected string
# getBaseEndpoint( )

Get base endpoint URL

Get base endpoint URL

Returns

string
protected string
# getEndpoint( )

Get API endpoint URL

Get API endpoint URL

Returns

string
public string
# getMerchantId( )

Get the gateway merchantId

Get the gateway merchantId

Returns

string
public Omnipay\VivaPayments\Message\AbstractRestRequest
# setMerchantId( string $value )

Set the gateway merchantId

Set the gateway merchantId

Note that all test merchantIds begin with the word TEST in upper case.

Parameters

$value

Returns

Omnipay\VivaPayments\Message\AbstractRestRequest
provides a fluent interface.
public string
# getApiKey( )

Get the gateway apiKey -- used as the password in HTTP Basic Auth

Get the gateway apiKey -- used as the password in HTTP Basic Auth

Returns

string
public Omnipay\VivaPayments\Message\AbstractRestRequest
# setApiKey( string $value )

Set the gateway apiKey -- used as the password in HTTP Basic Auth

Set the gateway apiKey -- used as the password in HTTP Basic Auth

Parameters

$value

Returns

Omnipay\VivaPayments\Message\AbstractRestRequest
provides a fluent interface.
public string
# getRequestLang( )

Get the gateway language

Get the gateway language

The language (in ISO format) that the payment form is displayed. This parameter is also included in the target URL the application uses to redirect the user after the successful/unsuccessful completion of a payment.

Note: If no parameter is passed, the system assumes el-GR. The payment form is currently displayed in the English language for all values other than el-GR.

Returns

string
public Omnipay\VivaPayments\Message\AbstractRestRequest
# setRequestLang( string $value )

Set the gateway language

Set the gateway language

The language (in ISO format) that the payment form is displayed. This parameter is also included in the target URL the application uses to redirect the user after the successful/unsuccessful completion of a payment.

Note: If no parameter is passed, the system assumes el-GR. The payment form is currently displayed in the English language for all values other than el-GR.

Parameters

$value

Returns

Omnipay\VivaPayments\Message\AbstractRestRequest
provides a fluent interface.
public string
# getSourceCode( )

Get the transaction source code.

Get the transaction source code.

Sources can be created and managed from the merchant's profile. A source is used for grouping and filtering transactions (ie a merchant may have more than one websites, or different product categories).

Note: SourceCode is case-sensitive.

Returns

string
public Omnipay\VivaPayments\Message\AbstractRestRequest
# setSourceCode( string $value )

Set the transaction source code.

Set the transaction source code.

Sources can be created and managed from the merchant's profile. A source is used for grouping and filtering transactions (ie a merchant may have more than one websites, or different product categories).

Note: SourceCode is case-sensitive.

Parameters

$value

Returns

Omnipay\VivaPayments\Message\AbstractRestRequest
provides a fluent interface.
public mixed
# getData( )

Get the raw data array for this message. The format of this varies from gateway to gateway, but will usually be either an associative array, or a SimpleXMLElement.

Get the raw data array for this message. The format of this varies from gateway to gateway, but will usually be either an associative array, or a SimpleXMLElement.

Returns

mixed
protected Omnipay\VivaPayments\Message\RestResponse
# createResponse( Omnipay\Common\Message\RequestInterface $request, $data, integer $statusCode = 200 )

Creates the correct type of response for this request.

Creates the correct type of response for this request.

This is a hook to allow different types of request to create their own response types, normally used when there is a redirect request of some kind.

Parameters

$request
$data
$statusCode

Returns

Omnipay\VivaPayments\Message\RestResponse
public ResponseInterface
# sendData( mixed $data )

Send the request with specified data

Send the request with specified data

Parameters

$data
The data to send

Returns

ResponseInterface
Methods inherited from Omnipay\Common\Message\AbstractRequest
__construct(), formatCurrency(), getAmount(), getAmountInteger(), getCancelUrl(), getCard(), getCardReference(), getClientIp(), getCurrency(), getCurrencyDecimalPlaces(), getCurrencyNumeric(), getDescription(), getIssuer(), getItems(), getNotifyUrl(), getParameter(), getParameters(), getPaymentMethod(), getResponse(), getReturnUrl(), getTestMode(), getToken(), getTransactionId(), getTransactionReference(), initialize(), send(), setAmount(), setCancelUrl(), setCard(), setCardReference(), setClientIp(), setCurrency(), setDescription(), setIssuer(), setItems(), setNotifyUrl(), setParameter(), setPaymentMethod(), setReturnUrl(), setTestMode(), setToken(), setTransactionId(), setTransactionReference(), toFloat(), validate()
Properties summary
protected string $testEndpoint

Sandbox Endpoint URL

Sandbox Endpoint URL

# 'http://demo.vivapayments.com'
protected string $liveEndpoint

Live Endpoint URL

Live Endpoint URL

# 'https://www.vivapayments.com'
Properties inherited from Omnipay\Common\Message\AbstractRequest
$httpClient, $httpRequest, $negativeAmountAllowed, $parameters, $response, $zeroAmountAllowed
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen