Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules: Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#2608 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
#2617 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 ... erid=14&ai[controller]=checkout&ai[action]=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
#2618 by aimeos
10 Mar 2016, 16:55
stiller wrote:
Code: Select allomnipay.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 allomnipay.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?
#2620 by stiller
10 Mar 2016, 21:48
I'm sorry.
after adding the configuration
Code: Select allomnipay.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
#2621 by aimeos
11 Mar 2016, 10:24
This is what the Sofort driver tests for successful payments:
https://github.com/ismailasci/omnipay-sofort/blob/master/src/Omnipay/Sofort/Message/CompleteAuthorizeResponse.php#L11-L12

Can you add an
Code: Select allerror_log( print_r( $this->data, true ) );

before and see what the response of Sofort was?
#2624 by stiller
11 Mar 2016, 21:38
sadly it returns an empty XML Object
Code: Select allSimpleXMLElement 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
#2625 by aimeos
12 Mar 2016, 10:57
[quote="stiller"]sadly it returns an empty XML Object
Code: Select allSimpleXMLElement 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.
#2917 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/Administration_Interface/Service_list#Sofort