MyShop

Extends \MPay24Shop

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

  • STRING: STATUS - OK, ERROR
  • STRING: OPERATION - CONFIRMATION
  • STRING: TID - length <= 32
  • STRING: TRANSACTION_STATUS - RESERVED, BILLED, REVERSED, CREDITED, ERROR
  • INT: PRICE - length = 11 (e. g. "10" = "0,10")
  • STRING: CURRENCY - length = 3 (ISO currency code, e. g. "EUR")
  • STRING: P_TYPE - CC, ELV, EPS, GIROPAY, MAESTRO, PB, PSC, QUICK, etc
  • STRING: BRAND - AMEX, DINERS, JCB, MASTERCARD, VISA, ATOS, HOBEX-AT, HOBEX-DE, etc
  • INT: MPAYTID - length = 11
  • STRING: USER_FIELD
  • STRING: ORDERDESC
  • STRING: CUSTOMER
  • STRING: CUSTOMER_EMAIL
  • STRING: LANGUAGE - length = 2
  • STRING: CUSTOMER_ID - length = 11
  • STRING: PROFILE_STATUS - IGNORED, USED, ERROR, CREATED, UPDATED, DELETED
  • STRING: FILTER_STATUS
  • STRING: APPR_CODE
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

Methods

Actualize the transaction, writing all the transaction's parameters into result.txt

updateTransaction(string $tid, array $args, bool $shippingConfirmed) 
inherited

Arguments

$tid

string

The transaction ID you want to update with the confirmation

$args

array

Arrguments with them the transaction is to be updated

$shippingConfirmed

bool

TRUE if the shipping address is confirmed, FALSE - otherwise (in case of PayPal Express Checkout)

Give the transaction object back, after the required parameters (TID and PRICE) was set

getTransaction(string $tid) 
inherited

Arguments

$tid

string

The transaction ID of the transaction you want get

NOT IMPLEMENTED

createProfileOrder(string $tid) 
inherited

Using the ORDER object from order.php, create a order-xml, which is needed for a transaction with profiles to be started

Arguments

$tid

string

The transaction ID of the transaction you want to make an order transaction XML file for

NOT IMPLEMENTED

createExpressCheckoutOrder(string $tid) 
inherited

Using the ORDER object from order.php, create a order-xml, which is needed for a transaction with PayPal Express Checkout to be started

Arguments

$tid

string

The transaction ID of the transaction you want to make an order transaction XML file for

NOT IMPLEMENTED

createFinishExpressCheckoutOrder(string $tid, $s, $a, $c) 
inherited

Using the ORDER object from order.php, create a order-xml, which is needed for a transaction with PayPal Express Checkout to be finished

Arguments

$tid

string

The transaction ID of the transaction you want to make an order transaction XML file for

$s

$a

$c

Write a mpay24 log into log.log

write_log(string $operation, string $info_to_log) 
inherited

Arguments

$operation

string

The operation, which is to log: GetPaymentMethods, Pay, PayWithProfile, Confirmation, UpdateTransactionStatus, ClearAmount, CreditAmount, CancelTransaction, etc.

$info_to_log

string

The information, which is to log: request, response, etc.

NOT IMPLEMENTED

createSecret(string $tid, string $amount, string $currency, string $timeStamp) 
inherited

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.

Arguments

$tid

string

The transaction ID you want to make a secret key for

$amount

string

The amount, reserved for this transaction

$currency

string

The timeStamp at the moment the transaction is created

$timeStamp

string

The timeStamp at the moment the transaction is created

NOT IMPLEMENTED

getSecret(string $tid) 
inherited

Get the secret (hashed) token for a transaction

Arguments

$tid

string

The transaction ID you want to get the secret key for

Create a transaction with the reuqired transaction's parameters - TID and PRICE

createTransaction() 
inherited

Using the ORDER object, create a exmaple MDXI-XML

createMDXI(\Transaction $transaction) 
inherited

Arguments

$transaction

\Transaction

The transaction you want to make a MDXI XML file for

Properties

The transaction ID

tid

The amount for the transaction

price