Class Mobilpay_Payment_Request_Abstract

Description

Class Mobilpay_Payment_Request_Abstract

This class can be used for accessing mobilpay.ro payment interface for your configured online services

  • author: Claudiu Tudose
  • version:

    1.0

    This class uses OpenSSL In order to use the OpenSSL functions you need to install the OpenSSL package. Check PHP documentation for installing OpenSSL package

  • copyright: NETOPIA System
  • abstract:

Located in /sources_custom/mobilpay/Request/Abstract.php (line 13)


	
			
Direct descendents
Class Description
Mobilpay_Payment_Request_Sms Class Mobilpay_Payment_Request_Sms
Class Constant Summary
Variable Summary
mixed $cancelUrl
string $confirmUrl
mixed $objPmNotify
string(64) $orderId
mixed $params
string $returnUrl
mixed $service
string(64) $signature
mixed $timestamp
mixed $type
mixed $_xmlDoc
Method Summary
static void factory ( $data)
static void factoryFromEncrypted ( $envKey,  $encData,  $privateKeyFilePath, [ $privateKeyPassword = null])
static void _factoryFromQueryString ( $data)
static void _factoryFromXml ( $xmlDoc)
void encrypt ( $x509FilePath)
Mobilpay_Payment_Request_Abstract __construct ()
void getEncData ()
void getEnvKey ()
void getRequestInfo ()
void _loadFromXml ( $elem)
void _parseFromXml ( $elem)
void _prepare ()
void _setRequestInfo ( $reqVersion,  $reqData)
void __get ( $name)
void __isset ( $name)
void __set ( $name,  $value)
void __sleep ()
void __wakeup ()
Variables
mixed $cancelUrl = null (line 89)
  • access: public
string $confirmUrl = null (line 88)

confirmUrl (Optional) - URL of the seller that will be requested when mobilpay.ro will make

a decision about payment (e.g. confirmed, canceled). If it is not supplied the application will use confirm URL configured in control panel use it only if you want to overwrite the configured one otherwise set it's value to NULL

  • access: public
mixed $objPmNotify = null (line 68)
  • access: public
mixed $objReqNotify = null (line 112)
  • access: public
string(64) $orderId = null (line 64)

orderId (Mandatory) - payment transaction identifier generated by merchant; helps merchant to interpret a request to confirm or return url; it should be unique for the specified signature

  • access: public
mixed $params = array() (line 91)
  • access: public
string $returnUrl = null (line 78)

returnUrl (Optional) - URL where the user is redirected from mobilpay.ro payment interface

when the transaction is canceled or confirmed. If it is not supplied the application will use return URL configured in control panel use it only if you want to overwrite the configured one otherwise set it's value to NULL

  • access: public
mixed $service = null (line 56)

service - identifier of service/product for which you're requesting a payment

Mandatory for Mobilpay_Payment_Request_Sms Optional for Mobilpay_Payment_Request_Card

  • access: public
string(64) $signature = null (line 50)

signatue (Mandatory) - signature received from mobilpay.ro that identifies merchant account

  • access: public
mixed $timestamp = null (line 65)
  • access: public
mixed $type = self::PAYMENT_TYPE_SMS (line 66)
  • access: public
mixed $_objRequestInfo = null (line 110)
  • access: protected
mixed $_objRequestParams = null (line 109)
  • access: protected
mixed $_requestIdentifier = null (line 107)
  • access: protected
mixed $_xmlDoc = null (line 105)
  • access: protected
Methods
static method factory (line 125)
  • access: public
static void factory ( $data)
  • $data
static method factoryFromEncrypted (line 145)
  • access: public
static void factoryFromEncrypted ( $envKey,  $encData,  $privateKeyFilePath, [ $privateKeyPassword = null])
  • $envKey
  • $encData
  • $privateKeyFilePath
  • $privateKeyPassword
static method _factoryFromQueryString (line 215)
  • access: protected
static void _factoryFromQueryString ( $data)
  • $data
static method _factoryFromXml (line 184)
  • access: protected
static void _factoryFromXml ( $xmlDoc)
  • DOMDocument $xmlDoc
encrypt (line 308)
  • access: public
void encrypt ( $x509FilePath)
  • $x509FilePath
Constructor __construct (line 114)
  • access: public
Mobilpay_Payment_Request_Abstract __construct ()

Redefined in descendants as:
getEncData (line 351)
  • access: public
void getEncData ()
getEnvKey (line 346)
  • access: public
void getEnvKey ()
getRequestIdentifier (line 356)
  • access: public
void getRequestIdentifier ()
getRequestInfo (line 229)
  • access: public
void getRequestInfo ()
_loadFromXml (line 123)
  • abstract:
  • access: protected
void _loadFromXml ( $elem)
  • DOMElement $elem

Redefined in descendants as:
_parseFromXml (line 234)
  • access: protected
void _parseFromXml ( $elem)
  • DOMNode $elem
_prepare (line 122)
  • abstract:
  • access: protected
void _prepare ()

Redefined in descendants as:
_setRequestInfo (line 222)
  • access: protected
void _setRequestInfo ( $reqVersion,  $reqData)
  • $reqVersion
  • $reqData
__get (line 372)
  • access: public
void __get ( $name)
  • $name
__isset (line 361)
  • access: public
void __isset ( $name)
  • $name
__set (line 367)
  • access: public
void __set ( $name,  $value)
  • $name
  • $value
__sleep (line 384)
  • access: public
void __sleep ()
__wakeup (line 381)
  • access: public
void __wakeup ()
Class Constants
CONFIRM_ERROR_TYPE_NONE = 0x00 (line 18)
CONFIRM_ERROR_TYPE_PERMANENT = 0x02 (line 20)
CONFIRM_ERROR_TYPE_TEMPORARY = 0x01 (line 19)
ERROR_CONFIRM_FAILED_DECODING_DATA = 0x300000f1 (line 35)
ERROR_CONFIRM_FAILED_DECODING_ENVELOPE_KEY = 0x300000f2 (line 36)
ERROR_CONFIRM_FAILED_DECRYPT_DATA = 0x300000f3 (line 37)
ERROR_CONFIRM_INVALID_ACTION = 0x300000f6 (line 40)
ERROR_CONFIRM_INVALID_POST_METHOD = 0x300000f4 (line 38)
ERROR_CONFIRM_INVALID_POST_PARAMETERS = 0x300000f5 (line 39)
ERROR_CONFIRM_LOAD_PRIVATE_KEY = 0x300000f0 (line 34)
ERROR_ENCRYPT_DATA = 0x10000002 (line 23)
ERROR_FACTORY_BY_XML_INVALID_TYPE = 0x20000003 (line 29)
ERROR_FACTORY_BY_XML_ORDER_ELEM_NOT_FOUND = 0x20000001 (line 27)
ERROR_FACTORY_BY_XML_ORDER_TYPE_ATTR_NOT_FOUND = 0x20000002 (line 28)
ERROR_LOAD_FROM_XML_ORDER_ID_ATTR_MISSING = 0x30000001 (line 31)
ERROR_LOAD_FROM_XML_SIGNATURE_ELEM_MISSING = 0x30000002 (line 32)
ERROR_LOAD_X509_CERTIFICATE = 0x10000001 (line 22)
ERROR_PREPARE_MANDATORY_PROPERTIES_UNSET = 0x11000001 (line 25)
PAYMENT_TYPE_CARD = 'card' (line 16)
PAYMENT_TYPE_SMS = 'sms' (line 15)
VERSION_QUERY_STRING = 0x01 (line 42)
VERSION_XML = 0x02 (line 43)

Documentation generated on Sun, 02 Jan 2011 23:06:49 +0000 by phpDocumentor 1.4.3