The MPay24Api class provides the communication functioanallity. It hold's all the sensitive data (merchant ID, SOAP password, etc) and build the SOAP request, sent to mPAY24
author | mPAY24 GmbH <support@mpay24.com> |
---|---|
version | $Id: MPay24Api.php 5522 2013-06-24 13:08:35Z anna $ |
filesource | MPay24Api.php |
license | http://ec.europa.eu/idabc/eupl.html EUPL, Version 1.1 |
configure(int $merchantID, string $soapPassword, bool $test, string $proxyHost, int $proxyPort)
int
5-digit account number, supported by mPAY24 TEST accounts - starting with 9 LIVE account - starting with 7
string
The webservice's password, supported by mPAY24
bool
TRUE - when you want to use the TEST system FALSE - when you want to use the LIVE system
string
The host name in case you are behind a proxy server ("" when not)
int
4-digit port number in case you are behind a proxy server ("" when not)
configureFlexLINK(string $spid, string $password, bool $test)
string
The SPID of your account, supported by mPAY24
string
The flexLINK password, supported by mPAY24
bool
TRUE - when you want to use the TEST system FALSE - when you want to use the LIVE system
getMerchantID()
getSPID()
getFlexLINKSystem()
getEtpURL()
getRequest()
getResponse()
proxyUsed()
setDebug(bool $debug)
bool
TRUE if is turned on, otherwise FALSE
getDebug()
dieWithMsg(string $msg)
string
The message, which is shown to the user
printMsg(string $msg)
string
The message, which is shown to the user
ListPaymentMethods()
SelectPayment(\ORDER $mdxi)
\ORDER
The mdxi xml, which contains the shopping cart
ProfilePayment(\ORDER $requestString)
The payment window will not be called, the payment source (for example credit card), which was used from the customer by the last payment will be used for the transaction.
\ORDER
The order xml, which contains the shopping cart
ExpressCheckoutPayment(\ORDER $requestString)
\ORDER
The order xml, which contains the shopping cart
CallbackPaypal(string $requestString)
string
The callback request to mPAY24
ManualClear(int $mPAYTid, int $amount, string $currency)
int
The mPAY24 transaction ID
int
The amount to be cleared multiplay by 100
string
3-digit ISO currency code: EUR, USD, etc
ManualCredit(int $mPAYTid, int $amount, string $currency, string $customer)
int
The mPAY24 transaction ID
int
The amount to be credited multiplay by 100
string
3-digit ISO currency code: EUR, USD, etc
string
The name of the customer, who has paid
ManualReverse(int $mPAYTid)
int
The mPAY24 transaction ID for the transaction you want to cancel
TransactionStatus(int $mPAYTid = null, string $tid = null)
int
The mPAY24 transaction ID
string
The transaction ID from your shop
flexLINK(array $params)
array
The parameters, which are going to be posted to mPAY24
setMerchantID(string $merchantID = null)
string
The merchant ID
setSPID(string $spid)
string
The SPID of your account, supported by mPAY24
setSoapPassword(string $pass = null)
string
The SOAP password, provided by mPAY24
setPassword(string $pass)
string
The flexLINK password, provided by mPAY24
setSystem(bool $test = null)
("https://test.mpay24.com/app/bin/etpproxy_v14" or
"https://www.mpay24.com/app/bin/etpproxy_v14")
bool
TRUE for TEST system and FALSE for LIVE system.
setFlexLINKSystem(bool $test = null)
bool
TRUE for TEST system and FALSE for LIVE system.
setProxySettings(string $proxy_host = "", string $proxy_port = "")
string
Proxy host
string
Proxy port
buildEnvelope()
send()
ssl_encrypt(string $pass, string $data)
string
The password, used for the encoding
string
The data, that should be encoded
test
flexLINKSystem
etp_url
DEFAULT : https://test.mpay24.com/app/bin/etpproxy_v14 (TEST SYSTEM)
merchantid
spid
soappass
pass
soap_xml
proxy_host
proxy_port
request
response
debug