Page 1 of 2

Mobilpay for Typo3

Posted: 14 Jan 2016, 14:26
by Bollerx
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.

Re: Mobilpay for Typo3

Posted: 14 Jan 2016, 15:04
by aimeos
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.

Re: Mobilpay for Typo3

Posted: 15 Jan 2016, 13:40
by Bollerx
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.

Re: Mobilpay for Typo3

Posted: 15 Jan 2016, 14:45
by aimeos
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)

Re: Mobilpay for Typo3

Posted: 18 Jan 2016, 09:16
by Bollerx
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 4788 times

Re: Mobilpay for Typo3

Posted: 18 Jan 2016, 11:31
by aimeos
You have to use the Omnipay provider if there's no specialized class:
https://aimeos.org/docs/User_Manual/Adm ... st#Omnipay

Re: Mobilpay for Typo3

Posted: 18 Jan 2016, 12:07
by Bollerx
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.

Re: Mobilpay for Typo3

Posted: 18 Jan 2016, 12:24
by aimeos
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.

Re: Mobilpay for Typo3

Posted: 18 Jan 2016, 12:38
by Bollerx
variation.png
variation.png (34.02 KiB) Viewed 4774 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 4774 times

Re: Mobilpay for Typo3

Posted: 18 Jan 2016, 14:22
by aimeos
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.