Class Mobilpay_Payment_Request

Description

Class Mobilpay_Payment_Request

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. See PHP documentation for installing OpenSSL package

  • copyright: NETOPIA System

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


	
			
Class Constant Summary
Variable Summary
mixed $m_currency
mixed $m_details
string(255) $m_first_name
string(255) $m_last_name
string(10) $m_msisdn
array $m_params
mixed $m_price
string $m_return_url
mixed $m_service
string(24) $m_signature
string $m_timestamp
mixed $m_tran_id
string(64) $m_type
Method Summary
static void buildQueryString ( $params)
Mobilpay_Payment_Request Mobilpay_Payment_Request ()
boolean buildAccessParameters (resource $public_key, string &$env_key, string &$enc_data)
Variables
string $m_confirm_url = null (line 64)

m_confirm_url (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 for the specified service in control panel

  • access: public
mixed $m_currency = null (line 38)
  • access: public
mixed $m_details = null (line 36)
  • access: public
string(255) $m_first_name = null (line 71)

m_first_name (Optional) - First name of the customer.

  • access: public
string(255) $m_last_name = null (line 78)

m_last_name (Optional) - Last name of the customer.

  • access: public
string(10) $m_msisdn = null (line 86)

m_msisdn (Optional) - MSISDN (mobile phone numner) of the customer. If it's supplied it should be in 07XXXXXXXX format.

If it's supplied mobilpay.ro will use it for checking if payment is allowed for the specified service automaticaly

  • access: public
array $m_params = array() (line 92)

m_params (Optional) - additional parameters sent to mobilpay.ro secure payment portal

  • access: public
mixed $m_price = null (line 37)
  • access: public
string $m_return_url = null (line 55)

m_return_url (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 for the specified service in control panel

  • access: public
mixed $m_service = null (line 28)

m_service (Mandatory) - signature received from mobilpay.ro thet identifies the online service for which you are requesting a payment

  • access: public
string(24) $m_signature = null (line 23)

m_signatue (Mandatory) - signature received from mobilpay.Ro that identifies merchant account

  • access: public
string $m_timestamp = null (line 46)

m_timetsamp (Mandatory) - merchant's site datetime when the transaction was generated expressed as YYYYMMDDhhmmss

  • access: public
mixed $m_tran_id = null (line 39)
  • access: public
string(64) $m_type = self::PAYMENT_TYPE_SMS (line 35)

m_tran_id (Mandatory) - payment transaction generated by seller; helps seller to interpret a request to return url; it should be unique for the specified service

  • access: public
Methods
static method buildQueryString (line 151)
static void buildQueryString ( $params)
  • $params
Constructor Mobilpay_Payment_Request (line 94)
Mobilpay_Payment_Request Mobilpay_Payment_Request ()
buildAccessParameters (line 169)

access Mobilpay.Ro secure payment portal

  • access: public
boolean buildAccessParameters (resource $public_key, string &$env_key, string &$enc_data)
  • resource $public_key:
    • obtained by calling openssl_pkey_get_public
  • string &$env_key:
    • returns envelope key base64 encoded or null if function fails
  • string &$enc_data:
    • returns data to post base64 encoded or null if function fails
builParametersList (line 99)
  • access: public
void builParametersList ()
Class Constants
PAYMENT_TYPE_CARD = 0x02 (line 16)
PAYMENT_TYPE_SMS = 0x01 (line 15)

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