• My account
    • (X)Sign in

      I am a returning customer at TYPO3 Multishop

      Enter your username and password here in order to log in on the website:

      Forgot your password?

      Not yet customer of TYPO3 Multishop?

      • Order history
      • Automatic generated e-mail history
      • Track your Order
      New at TYPO3 Multishop
You are here:

Help by translating Multishop in your local language

On the following page you can help by translating Multishop in your local language:

https://translation.typo3.org/projects/TYPO3.ext.multishop/

Spanish:

https://translation.typo3.org/es/TYPO3.ext.multishop/pi1/locallang.xlf

The following language are already translated by our supporters:

  • Dutch
  • German
  • French

New payment method


Author Message
leon
levent
Multishop experienced
Topic creator
registered since: 01.08.2011
Posts: 19
Hi, i want to add a new payment method for Turkey credit card system.
The file for payment methods
is multishop/pi1/classes/class.mslib_fe.php. A new payment method can
be added in function loadAllPaymentMethods() to admin area. I wonder if any other way to add a method specific for
Turkey banking system. The configration of the method has to be done in that file
or any other file?
Written on: 29. 09. 2011 [11:24]
bas
Bas van Beek
Multishop guru
registered since: 12.05.2010
Posts: 644
Let's say you want to add the PSP turkpsp.

Here are the steps:

1 define the PSP
----------------------------------
Open pi1/classes/class.mslib_fe.php
Find the text OGONE. You can use the lines of Ogone as example by duplicating the code and rename ogone to turkpsp.

2 add the PSP payment script/form (which is shown on the check out finished page)
----------------------------------
Copy scripts/front_pages/includes/psp_forms/ogone.php to scripts/front_pages/includes/psp_forms/turkpsp.php and edit the file.

3 add underwater script (so the PSP automatically updates the order status to PAYED)
----------------------------------
Open ajax_pages/core.php and find:

PHP
case 'psp_post_payment_ogone':
  if ($post['STATUS']==9)
  {
   $transaction_id=$post['PARAMPLUS'];
   if ($transaction_id)
   {
    $orders_id=mslib_fe::getOrdersIdByTransactionId($transaction_id,'ogone');
    if ($orders_id)
    {
     mslib_fe::updateOrderStatusToPayed($orders_id);
    }
   }
  }
 break;


Copy this for turkpsp and adjust the code
Written on: 08. 10. 2011 [15:51]
leon
levent
Multishop experienced
Topic creator
registered since: 01.08.2011
Posts: 19
Thank you very much, i will try this soon.
Written on: 08. 10. 2011 [19:01]
bas
Bas van Beek
Multishop guru
registered since: 12.05.2010
Posts: 644
Your welcome.

When the PSP is working please share your code with us, so we can extend it to the base package of Multishop. That way everybody can enjoy it!
Written on: 13. 10. 2011 [13:05]