Overview

Namespaces

  • Kdyby
    • Annotations
      • DI
    • Aop
      • DI
      • JoinPoint
      • PhpGenerator
      • Pointcut
        • Matcher
    • Autowired
      • DI
      • Diagnostics
    • BootstrapFormRenderer
      • DI
      • Latte
    • Clock
      • DI
      • Providers
    • Console
      • DI
      • Helpers
    • CsobPaygateNette
      • DI
      • UI
    • CsobPaymentGateway
      • Certificate
      • Http
      • Message
    • Curl
      • DI
      • Diagnostics
    • CurlCaBundle
    • DibiBridge
    • Doctrine
      • Collections
      • Console
      • DI
      • Diagnostics
      • Dql
      • Entities
        • Attributes
      • Hydration
      • Mapping
      • Proxy
      • Tools
    • DoctrineCache
      • DI
    • DoctrineForms
      • Builder
      • Controls
      • DI
    • DoctrineMoney
      • DI
      • Mapping
      • Types
    • ElasticSearch
      • DI
      • Diagnostics
    • Events
      • DI
      • Diagnostics
    • Facebook
      • Api
      • DI
      • Diagnostics
      • Dialog
      • Resource
    • FakeSession
      • DI
    • Geocoder
      • Comparator
      • DI
      • Provider
    • Github
      • Api
      • DI
      • Diagnostics
      • UI
    • Google
      • DI
      • Diagnostics
      • Dialog
      • IO
    • Money
      • DI
    • Monolog
      • DI
      • Diagnostics
      • Handler
      • Processor
    • Persistence
    • RabbitMq
      • Command
      • DI
      • Diagnostics
    • Redis
      • DI
      • Diagnostics
      • Driver
    • Replicator
      • DI
    • RequestStack
      • DI
    • Translation
      • Console
      • DI
      • Diagnostics
      • Dumper
      • Extractors
      • Latte
      • Loader
      • LocaleResolver
    • Validator
      • DI
    • Wkhtmltopdf
  • KdybyModule
  • Doctrine
    • Common
      • Annotations
        • Annotation
      • Cache
      • Collections
        • Expr
      • Inflector
      • Lexer
      • Persistence
        • Event
        • Mapping
          • Driver
      • Proxy
        • Exception
      • Reflection
      • Util
    • DBAL
      • Cache
      • Connections
      • Driver
        • DrizzlePDOMySql
        • IBMDB2
        • Mysqli
        • OCI8
        • PDOIbm
        • PDOMySql
        • PDOOracle
        • PDOPgSql
        • PDOSqlite
        • PDOSqlsrv
        • SQLAnywhere
        • SQLSrv
      • Event
        • Listeners
      • Exception
      • Id
      • Logging
      • Platforms
        • Keywords
      • Portability
      • Query
        • Expression
      • Schema
        • Synchronizer
        • Visitor
      • Sharding
        • ShardChoser
        • SQLAzure
          • Schema
      • Tools
        • Console
          • Command
          • Helper
      • Types
    • Instantiator
      • Exception
    • ORM
      • Cache
        • Logging
        • Persister
          • Collection
          • Entity
        • Region
      • Decorator
      • Event
      • Id
      • Internal
        • Hydration
      • Mapping
        • Builder
        • Driver
        • Reflection
      • Persisters
        • Collection
        • Entity
      • Proxy
      • Query
        • AST
          • Functions
        • Exec
        • Expr
        • Filter
      • Repository
      • Tools
        • Console
          • Command
            • ClearCache
            • SchemaTool
          • Helper
        • Event
        • Export
          • Driver
        • Pagination
      • Utility
  • DoctrineExtensions
    • Query
      • Mysql
      • Oracle
      • Postgresql
      • Sqlite
    • Types
  • Elastica
    • Aggregation
    • Bulk
      • Action
    • Cluster
      • Health
    • Connection
      • Strategy
    • Exception
      • Bulk
        • Response
      • Connection
    • Index
    • Multi
    • Node
    • Query
    • QueryBuilder
      • DSL
      • Version
    • Rescore
    • Script
    • Suggest
      • CandidateGenerator
    • Tool
    • Transport
    • Type
  • FSHL
    • Lexer
      • Cache
    • Output
  • Geocoder
    • Adapter
    • Dumper
    • Exception
    • Formatter
    • Model
    • Provider
  • igorw
  • Ivory
    • HttpAdapter
      • Asset
      • Event
        • BasicAuth
        • Cookie
          • Jar
        • Formatter
        • History
        • Redirect
        • Retry
          • Strategy
        • StatusCode
        • Subscriber
        • Timer
      • Extractor
      • Message
      • Normalizer
      • Parser
  • Latte
    • Loaders
    • Macros
    • Runtime
  • Majkl578
    • NetteAddons
      • Doctrine2Identity
        • DI
        • Http
        • Security
  • Monolog
    • Formatter
    • Handler
      • Curl
      • FingersCrossed
      • SyslogUdp
    • Processor
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Utils
  • NetteModule
  • Nextras
    • Application
      • UI
  • None
  • PHP
  • PhpAmqpLib
    • Channel
    • Connection
    • Exception
    • Helper
      • Protocol
    • Message
    • Wire
      • IO
  • Psr
    • Http
      • Message
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Dumper
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Descriptor
        • Event
        • Exception
        • Formatter
        • Helper
        • Input
        • Logger
        • Output
        • Question
      • EventDispatcher
        • Debug
        • DependencyInjection
      • Filesystem
        • Exception
      • Process
        • Exception
      • PropertyAccess
        • Exception
      • Translation
        • Catalogue
        • DataCollector
        • Dumper
        • Exception
        • Extractor
        • Loader
        • Util
        • Writer
      • Validator
        • Constraints
        • Context
        • Exception
        • Mapping
          • Cache
          • Factory
          • Loader
        • Util
        • Validator
        • Violation
      • Yaml
        • Exception
  • Tracy
    • Bridges
      • Nette
  • Zend
    • Diactoros
      • Exception
      • Request
      • Response

Classes

  • Client
  • Configuration
  • Payment

Interfaces

  • Exception
  • ExceptionWithResponse
  • IHttpClient

Exceptions

  • ApiException
  • InternalErrorException
  • InvalidArgumentException
  • InvalidParameterException
  • IOException
  • MerchantBlockedException
  • MissingExtensionException
  • MissingParameterException
  • OperationNotAllowedException
  • PaymentCanceledException
  • PaymentDeclinedException
  • PaymentException
  • PaymentNotFoundException
  • PaymentNotInValidStateException
  • SessionExpiredException
  • SigningException
  • UnexpectedValueException
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Class Client

Namespace: Kdyby\CsobPaymentGateway
Author: Filip Procházka <filip@prochazka.su>
Located at kdyby/csob-payment-gateway/src/Client.php
Methods summary
public
# __construct( Kdyby\CsobPaymentGateway\Configuration $config, Kdyby\CsobPaymentGateway\Message\Signature $signature, Kdyby\CsobPaymentGateway\IHttpClient $httpClient )
public
# setLogger( Psr\Log\LoggerInterface $logger = NULL )

Parameters

$logger
Psr\Log\LoggerInterface
$logger
public Kdyby\CsobPaymentGateway\Payment
# createPayment( integer $orderNo = NULL, string $customerId = NULL )

This is a factory method, not an api call.

This is a factory method, not an api call.

Parameters

$orderNo
integer
$orderNo
$customerId
string
$customerId

Returns

Kdyby\CsobPaymentGateway\Payment
public Kdyby\CsobPaymentGateway\Message\Response
# paymentInit( Kdyby\CsobPaymentGateway\Payment $payment )

Api call for payment/init

Api call for payment/init

Parameters

$payment
Kdyby\CsobPaymentGateway\Payment
$payment

Returns

Kdyby\CsobPaymentGateway\Message\Response
public Kdyby\CsobPaymentGateway\Message\RedirectResponse
# paymentProcess( string $paymentId )

RedirectResponse factory for payment/process

RedirectResponse factory for payment/process

Parameters

$paymentId
string
$paymentId

Returns

Kdyby\CsobPaymentGateway\Message\RedirectResponse
public Kdyby\CsobPaymentGateway\Message\Response
# paymentStatus( string $paymentId )

Parameters

$paymentId
string
$paymentId

Returns

Kdyby\CsobPaymentGateway\Message\Response
public Kdyby\CsobPaymentGateway\Message\Response
# paymentReverse( string $paymentId )

Parameters

$paymentId
string
$paymentId

Returns

Kdyby\CsobPaymentGateway\Message\Response
public Kdyby\CsobPaymentGateway\Message\Response
# paymentClose( string $paymentId, integer $totalAmount = NULL )

Parameters

$paymentId
string
$paymentId
$totalAmount
integer
$totalAmount In hundredth of currency units

Returns

Kdyby\CsobPaymentGateway\Message\Response
public Kdyby\CsobPaymentGateway\Message\Response
# paymentRefund( string $paymentId, integer $amount = NULL )

Please note, that when you wanna provide 100.25 CZK, you should pass here the number 10025

Please note, that when you wanna provide 100.25 CZK, you should pass here the number 10025

Parameters

$paymentId
string
$paymentId
$amount
integer
$amount In hundredth of currency units

Returns

Kdyby\CsobPaymentGateway\Message\Response
public Kdyby\CsobPaymentGateway\Message\Response
# paymentRecurrent( Kdyby\CsobPaymentGateway\Payment $payment )

Parameters

$payment
Kdyby\CsobPaymentGateway\Payment
$payment

Returns

Kdyby\CsobPaymentGateway\Message\Response
public Kdyby\CsobPaymentGateway\Message\Response
# customerInfo( string $customerId )

Parameters

$customerId
string
$customerId

Returns

Kdyby\CsobPaymentGateway\Message\Response
public Kdyby\CsobPaymentGateway\Message\Response
# receiveResponse( array $data )

Parameters

$data
array
$data

Returns

Kdyby\CsobPaymentGateway\Message\Response
public Kdyby\CsobPaymentGateway\Message\Response
# processRequest( Kdyby\CsobPaymentGateway\Message\Request $request )

Parameters

$request
Kdyby\CsobPaymentGateway\Message\Request
$request

Returns

Kdyby\CsobPaymentGateway\Message\Response

Throws

Kdyby\CsobPaymentGateway\ApiException
Kdyby\CsobPaymentGateway\PaymentException
Kdyby\CsobPaymentGateway\SigningException
protected
# handleInvalidPaymentStatus( Kdyby\CsobPaymentGateway\Message\Response $response )
protected Psr\Http\Message\ResponseInterface
# sendHttpRequest( Kdyby\CsobPaymentGateway\Message\Request $request )

Parameters

$request
Kdyby\CsobPaymentGateway\Message\Request
$request

Returns

Psr\Http\Message\ResponseInterface
protected string
# buildUrl( mixed $endpoint, array $data )

Parameters

$endpoint
mixed
$endpoint
$data
array
$data

Returns

string
protected boolean|string
# formatDatetime( )

Returns

boolean|string
protected
# logRequest( Kdyby\CsobPaymentGateway\Message\Request $request, Kdyby\CsobPaymentGateway\Message\Response $response = NULL, Kdyby\CsobPaymentGateway\Exception $exception = NULL )
Constants summary
string DTTM_FORMAT 'YmdHis'
#
Properties summary
public array|callable[]|Closure[] $onRequest []
#
public array|callable[]|Closure[] $onResponse []
#
public array|callable[]|Closure[] $onError []
#
Kdyby API documentation generated by ApiGen 2.8.0