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)
string
The transaction ID you want to update with the confirmation
array
Arrguments with them the transaction is to be updated
bool
TRUE if the shipping address is confirmed, FALSE - otherwise (in case of PayPal Express Checkout)
getTransaction(string $tid)
string
The 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
string
The 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
string
The 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
string
The transaction ID of the transaction you want to make an order transaction XML file for
write_log(string $operation, string $info_to_log)
string
The operation, which is to log: GetPaymentMethods, Pay, PayWithProfile, Confirmation, UpdateTransactionStatus, ClearAmount, CreditAmount, CancelTransaction, etc.
string
The 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.
string
The transaction ID you want to make a secret key for
string
The amount, reserved for this transaction
string
The timeStamp at the moment the transaction is created
string
The timeStamp at the moment the transaction is created
getSecret(string $tid)
Get the secret (hashed) token for a transaction
string
The transaction ID you want to get the secret key for
createTransaction()
createMDXI(\Transaction $transaction)
\Transaction
The transaction you want to make a MDXI XML file for
tid
price