Mobilpay for Typo3

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Bollerx
Posts: 43
Joined: 11 Jan 2016, 17:29

Mobilpay for Typo3

Post by Bollerx » 14 Jan 2016, 14:26

Hi,
i recently discovered that Omnipay has Mobilpay payment processing library but it's not included on Typo3 - Aimeos extension.
https://packagist.org/packages/business ... y-mobilpay
https://github.com/BusinessMastery/omnipay-mobilpay

My question is do you plan to integrate this in the near future into the aimeos_pay extension?
We have a project to start recently and we plan to use Aimeos shop extension, now we are testing and evaluate it, so before i start to integrate Mobilpay payment option i thought i better ask if not already on plan by Core.
We plan to use Mobilpay because Payu doesn't allow new users from our country in future.

Thanks.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Mobilpay for Typo3

Post by aimeos » 14 Jan 2016, 15:04

All Omnipay drivers listed at the Omnipay page are available in the "aimeos_pay" extension. Mobilpay is not among them but we can add it if you want. You only have to check if it works out of the box or if there must be any special handling for this driver.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Bollerx
Posts: 43
Joined: 11 Jan 2016, 17:29

Re: Mobilpay for Typo3

Post by Bollerx » 15 Jan 2016, 13:40

Hi, this a great news for us that you can implement easily the payment processor. As i send it to you before the links from Omnipay-Mobilpay gateway configuration...
we need to set only the following configuration parameters:
Initiating payment request
$gateway = Omnipay::create('MobilPay');
$gateway->setMerchantId('1234-5678-9012-3456-7890');
$gateway->setPublicKey('/path/to/public.cer');
and
Processing IPN requests
$gateway->privateKeyPath('/path/to/private.key');
If we can help you out with anything further please let us know. Thanks in advance for your help.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Mobilpay for Typo3

Post by aimeos » 15 Jan 2016, 14:45

We've create a new Aimeos payment package which includes the Omnipay MobilPay driver:
https://aimeos.org/fileadmin/download/a ... 2.0-b1.zip

You should now check if it works out of the box. The required parameter names are available in:
https://github.com/BusinessMastery/omni ... ateway.php)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Bollerx
Posts: 43
Joined: 11 Jan 2016, 17:29

Re: Mobilpay for Typo3

Post by Bollerx » 18 Jan 2016, 09:16

Thank you very much for adding the Mobilpay payment service(i installed succesfully).
I have a problem while i try to add to the payment list for a test, when i try to save the payment it show's me an error(attached image) while Class "MShop_Service_Provider_Payment_MobilPay" not available. Can you helping me out with this, i tried to add a different payment service too with no luck. I didn't searched for a documentation for how to add a payment service probably i need more time to get experience with Aimeos. Thanks in advance and have a good day.
error.png
error.png (102.51 KiB) Viewed 4785 times

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Mobilpay for Typo3

Post by aimeos » 18 Jan 2016, 11:31

You have to use the Omnipay provider if there's no specialized class:
https://aimeos.org/docs/User_Manual/Adm ... st#Omnipay
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Bollerx
Posts: 43
Joined: 11 Jan 2016, 17:29

Re: Mobilpay for Typo3

Post by Bollerx » 18 Jan 2016, 12:07

I've already tried to create a class for MobilPay service provider configuration>
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Aimeos (aimeos.org), 2015
* @package MShop
* @subpackage Service
*/


/**
* Payment provider for MobilPay.
*
* @package MShop
* @subpackage Service
*/
class MShop_Service_Provider_Payment_MobilPay
extends MShop_Service_Provider_Payment_Abstract
implements MShop_Service_Provider_Payment_Interface
{
/**

* Tries to get an authorization or captures the money immediately for the given

* order if capturing isn't supported or not configured by the shop owner.

*

* @param MShop_Order_Item_Interface $order Order invoice object

* @param array $params Request parameter if available

* @return MShop_Common_Item_Helper_Form_Default Form object with URL, action

* and parameters to redirect to (e.g. to an external server of the payment

* provider or to a local success page)

*/

public function process( MShop_Order_Item_Interface $order, array $params = array() )

{

// perform your actions

return parent::process( $order, $params );

}
/**
* Returns the Omnipay gateway provider name.
*
* @return string Gateway provider name
*/


protected function _getProviderType()
{
return 'MobilPay';
}

}
with the following code and settings in admin panel(merchantid, publickey, privatekey) it gives me a message (frontend):
Order status
Order ID 18
Payment status unfinished
and stays on page, not trying to connect to Mobilpay.
I've tried even with Omnipay settings but it's not working neither.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Mobilpay for Typo3

Post by aimeos » 18 Jan 2016, 12:24

First of all, how does MobilPay work?
- Does it redirect to the payment gateway and needs some information and customers enter their payment data at the MobilPay gateway?
- Do you have to collect the payment data locally and send it to the payment gateway via a POST request?
- Do you have to collect the payment data locally and send it to the payment gateway via an API request?

How did you've configured the standard Omnipay provider for your test? Please send us a screenshot without your MobilPay credentials.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Bollerx
Posts: 43
Joined: 11 Jan 2016, 17:29

Re: Mobilpay for Typo3

Post by Bollerx » 18 Jan 2016, 12:38

variation.png
variation.png (34.02 KiB) Viewed 4771 times
i've changed the settings to the following variation and it passed through, it asked me for a card number and cvv(i set it up a virtual one for test) now it gives me the next error message:
payment_error.png
payment_error.png (9.44 KiB) Viewed 4771 times

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Mobilpay for Typo3

Post by aimeos » 18 Jan 2016, 14:22

Please tell us first how MobilPay works. This is important for what have to be done.

The output you get is due to the "omnipay.onsite" parameter you've set but it's not necessarily correct.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply