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)
int5-digit account number, supported by mPAY24 TEST accounts - starting with 9 LIVE account - starting with 7
stringThe webservice's password, supported by mPAY24
boolTRUE - when you want to use the TEST system FALSE - when you want to use the LIVE system
stringThe host name in case you are behind a proxy server ("" when not)
int4-digit port number in case you are behind a proxy server ("" when not)
configureFlexLINK(string $spid, string $password, bool $test)
stringThe SPID of your account, supported by mPAY24
stringThe flexLINK password, supported by mPAY24
boolTRUE - 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)
boolTRUE if is turned on, otherwise FALSE
getDebug()
dieWithMsg(string $msg)
stringThe message, which is shown to the user
printMsg(string $msg)
stringThe message, which is shown to the user
ListPaymentMethods()
SelectPayment(\ORDER $mdxi)
\ORDERThe 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.
\ORDERThe order xml, which contains the shopping cart
ExpressCheckoutPayment(\ORDER $requestString)
\ORDERThe order xml, which contains the shopping cart
CallbackPaypal(string $requestString)
stringThe callback request to mPAY24
ManualClear(int $mPAYTid, int $amount, string $currency)
intThe mPAY24 transaction ID
intThe amount to be cleared multiplay by 100
string3-digit ISO currency code: EUR, USD, etc
ManualCredit(int $mPAYTid, int $amount, string $currency, string $customer)
intThe mPAY24 transaction ID
intThe amount to be credited multiplay by 100
string3-digit ISO currency code: EUR, USD, etc
stringThe name of the customer, who has paid
ManualReverse(int $mPAYTid)
intThe mPAY24 transaction ID for the transaction you want to cancel
TransactionStatus(int $mPAYTid = null, string $tid = null)
intThe mPAY24 transaction ID
stringThe transaction ID from your shop
flexLINK(array $params)
arrayThe parameters, which are going to be posted to mPAY24
setMerchantID(string $merchantID = null)
stringThe merchant ID
setSPID(string $spid)
stringThe SPID of your account, supported by mPAY24
setSoapPassword(string $pass = null)
stringThe SOAP password, provided by mPAY24
setPassword(string $pass)
stringThe 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")
boolTRUE for TEST system and FALSE for LIVE system.
setFlexLINKSystem(bool $test = null)
boolTRUE for TEST system and FALSE for LIVE system.
setProxySettings(string $proxy_host = "", string $proxy_port = "")
stringProxy host
stringProxy port
buildEnvelope()
send()
ssl_encrypt(string $pass, string $data)
stringThe password, used for the encoding
stringThe 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