Sofortüberweisung for Omnipay

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!
stiller
Posts: 83
Joined: 05 Mar 2016, 15:59

Sofortüberweisung for Omnipay

Post by stiller » 08 Mar 2016, 16:11

hi aimeos,

on another example "mobilpay"
typo3-extension-f16/mobilpay-for-typo3-t575-10.html
I have seen that you have compiled an extra version of the aimeos payment extension. would it be possible to do so for sofortüberweisung too?
you could get it from https://packagist.org/packages/asci/omnipay-sofort
it's not included in the omnipay standard although sofortüberweisung is quite popular in Germany and a lot of other shop owner will take interest in this payment service as well.
Composer is not working on my VM and I can't get it together.
many thanks in advance
Volker

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

Re: Sofortüberweisung for Omnipay

Post by aimeos » 08 Mar 2016, 17:14

Here's a new package:
https://aimeos.org/fileadmin/download/a ... 0-pre1.zip

If you get it to work, please share your configuration. We've already been asked several times for an integration of this payment provider.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

stiller
Posts: 83
Joined: 05 Mar 2016, 15:59

Re: Sofortüberweisung for Omnipay

Post by stiller » 10 Mar 2016, 14:19

many thanks for providing a special extension version with the payment option "sofortüberweisung"
it works smoothly with these configuration parameters -->

omnipay.type = Sofort
username = useraccount number at sofortüberweisung
projectId = xxxxxx
password = api_key

when creating an new project at sofortüberweisung one has to select the gateway option!

now. after transaction and return to the checkout page
http://example.de/index.php?id=9&code=s ... n]=confirm
the status of the payment is still unfinished.

although I've read the page
https://aimeos.org/docs/Developers/Html ... ut_process
carefully, I have no clue how to transfer the payment details to the aimeos system.
couldn't find anything about required get-parameter to change the payment status.

every sofortüberweisung project offers the possibility to enter an individual success link. this has to be adapted according to the shopsystem.

for a typo3 commerce system which is officially supported by sofortüberweisung the transferred parameters are the following:
&transaction=-TRANSACTION-&user_id=-USER_ID-&project_id=-PROJECT_ID-&reason_1=-REASON_1-&security_criteria=-SECURITY_CRITERIA-&user_variable_1=-USER_VARIABLE_1-&user_variable_5=-USER_VARIABLE_5-&user_variable_1_hash_pass=-USER_VARIABLE_1_HASH_PASS-

probably some programming skills would be helpful here. however I might not be the only one missing a step by step manual (and examples) of this crucuial part of implementation.

would you be so kind to help me out again.
cheers, Volker

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

Re: Sofortüberweisung for Omnipay

Post by aimeos » 10 Mar 2016, 16:55

stiller wrote:

Code: Select all

omnipay.type = Sofort
username = useraccount number at sofortüberweisung
projectId = xxxxxx
password = api_key
the status of the payment is still unfinished.
Seems like Sofort only support "authorize" and no "purchase" request:
https://github.com/ismailasci/omnipay-sofort#api-notes

Can you add this setting to your installation and try again?

Code: Select all

omnipay.authorize = 1
stiller wrote:every sofortüberweisung project offers the possibility to enter an individual success link. this has to be adapted according to the shopsystem.
This isn't strictly required for Aimeos, only if parameters are sent that should update the payment status immediately. The Sofort driver for OmniPay seems to make a request to the Sofort gateway to fetch the payment status (but only in "authorize" mode).
stiller wrote: however I might not be the only one missing a step by step manual (and examples) of this crucuial part of implementation.
We miss that too :-)
If you get an order status update in the "authorize" mode, we will add to the list of supported payment gateways.
Maybe you could write some kind of tutorial with your knowledge you've acquired?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

stiller
Posts: 83
Joined: 05 Mar 2016, 15:59

Re: Sofortüberweisung for Omnipay

Post by stiller » 10 Mar 2016, 21:48

I'm sorry.
after adding the configuration

Code: Select all

omnipay.authorize = 1
I receive the message
Unfortunately, the payment for your order was refused.
Do you wish to retry?

payment status = refused

I've used the parameters of the Sofort Demo Bank.
every transaction should succeed by default
also I'm receiving an E-Mail saying the transaction was successfull.

something is missing.
any hint how to proceed on this?

Volker

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

Re: Sofortüberweisung for Omnipay

Post by aimeos » 11 Mar 2016, 10:24

This is what the Sofort driver tests for successful payments:
https://github.com/ismailasci/omnipay-s ... hp#L11-L12

Can you add an

Code: Select all

error_log( print_r( $this->data, true ) );
before and see what the response of Sofort was?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

stiller
Posts: 83
Joined: 05 Mar 2016, 15:59

Re: Sofortüberweisung for Omnipay

Post by stiller » 11 Mar 2016, 21:38

sadly it returns an empty XML Object

Code: Select all

SimpleXMLElement Object ( ) 
after several attempts to solve it I have to suspend it at this point
if you don't have a clue what is missing, I will ask sofort.com to provide support.

many thanks for what you have done so far
Volker

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

Re: Sofortüberweisung for Omnipay

Post by aimeos » 12 Mar 2016, 10:57

[quote="stiller"]sadly it returns an empty XML Object

Code: Select all

SimpleXMLElement Object ( ) 
/quote]

According to the docs of the Sofort payment driver, this means that the payment was refused by Sofort. Maybe the support of Sofort is able to tell you why this happens.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: Sofortüberweisung for Omnipay

Post by aimeos » 22 Jun 2016, 10:38

Mastamedia sponsored a support package to get Sofortüberweisung working in Aimeos.
For TYPO3, a new aimeos_pay package is available now containing the fixed Sofort driver:
https://typo3.org/extensions/repository/view/aimeos_pay

Documentation has also been updated for the Sofort driver:
https://aimeos.org/docs/User_Manual/Adm ... ist#Sofort
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply