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

  • AbstractGateway
  • CreditCard
  • Currency
  • GatewayFactory
  • Helper
  • Issuer
  • Item
  • ItemBag
  • PaymentMethod

Interfaces

  • GatewayInterface
  • ItemInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class Currency

Currency class

This class abstracts certain functionality around currency objects, currency codes and currency numbers relating to global currencies used in the Omnipay system.

Namespace: Omnipay\Common
Located at Common/Currency.php
Methods summary
public string
# getCode( )

Get the three letter code for the currency

Get the three letter code for the currency

Returns

string
public string
# getNumeric( )

Get the numeric code for this currency

Get the numeric code for this currency

Returns

string
public integer
# getDecimals( )

Get the number of decimal places for this currency

Get the number of decimal places for this currency

Returns

integer
public static mixed
# find( string $code )

Find a specific currency

Find a specific currency

Parameters

$code
The three letter currency code

Returns

mixed
A Currency object, or null if no currency was found
public static array
# all( )

Get an array of all supported currencies

Get an array of all supported currencies

Returns

array
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen