The class MyShop extends the abstract class MPay24Shop and implements some of the basic functions in order to be able to make a payment
TYPE: PARAMETER - VALUE(s), description
| author | mPAY24 GmbH <support@mpay24.com> |
|---|---|
| version | $Id: test.php 5522 2013-06-24 13:08:35Z anna $ |
| filesource | test.php |
| license | http://ec.europa.eu/idabc/eupl.html EUPL, Version 1.1 |
updateTransaction(string $tid, array $args, bool $shippingConfirmed)
stringThe transaction ID you want to update with the confirmation
arrayArrguments with them the transaction is to be updated
boolTRUE if the shipping address is confirmed, FALSE - otherwise (in case of PayPal Express Checkout)
getTransaction(string $tid)
stringThe transaction ID of the transaction you want get
createProfileOrder(string $tid)
Using the ORDER object from order.php, create a order-xml, which is needed for a transaction with profiles to be started
stringThe transaction ID of the transaction you want to make an order transaction XML file for
createExpressCheckoutOrder(string $tid)
Using the ORDER object from order.php, create a order-xml, which is needed for a transaction with PayPal Express Checkout to be started
stringThe transaction ID of the transaction you want to make an order transaction XML file for
createFinishExpressCheckoutOrder(string $tid, $s, $a, $c)
Using the ORDER object from order.php, create a order-xml, which is needed for a transaction with PayPal Express Checkout to be finished
stringThe transaction ID of the transaction you want to make an order transaction XML file for
write_log(string $operation, string $info_to_log)
stringThe operation, which is to log: GetPaymentMethods, Pay, PayWithProfile, Confirmation, UpdateTransactionStatus, ClearAmount, CreditAmount, CancelTransaction, etc.
stringThe information, which is to log: request, response, etc.
createSecret(string $tid, string $amount, string $currency, string $timeStamp)
This is an optional function, but it's strongly recomended that you implement it - see details. It should build a hash from the transaction ID of your shop, the amount of the transaction, the currency and the timeStamp of the transaction. The mPAY24 confirmation interface will be called with this hash (parameter name 'token'), so you would be able to check whether the confirmation is really coming from mPAY24 or not. The hash should be then saved in the transaction object, so that every transaction has an unique secret token.
stringThe transaction ID you want to make a secret key for
stringThe amount, reserved for this transaction
stringThe timeStamp at the moment the transaction is created
stringThe timeStamp at the moment the transaction is created
getSecret(string $tid)
Get the secret (hashed) token for a transaction
stringThe transaction ID you want to get the secret key for
createTransaction()
createMDXI(\Transaction $transaction)
\TransactionThe transaction you want to make a MDXI XML file for
tid
price