Transaction Status Controller
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!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Transaction Status Controller
Hello!
I'm using the aimeos_pay extension and especially the Omnipay service provider with configuration omnipay.type = Payone_ShopFrontend due to having PAYONE as payment service provider.
On https://github.com/academe/OmniPay-Payone (the library which is included within aimeos_pay) it is described within the section "The Shop Front End API Gateway":
In the function updateSync of typo3conf\ext\aimeos_pay\Resources\Private\Extensions\ai-payments\lib\custom\src\MShop\Service\Provider\Payment\OmniPay.php I see no chance to succeed. This would be my second approach.
Is it right that the transaction status controller stuff is missing here? What would you recommend to do now? And is there something new regarding this topic?
Many thanks in advance!!!
TYPO3 7.6.15, Aimeos web shop 17.3.0, PHP version 5.6.30-0+deb8u1, Linux
I'm using the aimeos_pay extension and especially the Omnipay service provider with configuration omnipay.type = Payone_ShopFrontend due to having PAYONE as payment service provider.
On https://github.com/academe/OmniPay-Payone (the library which is included within aimeos_pay) it is described within the section "The Shop Front End API Gateway":
Within the PAYONE merchant interface you can enter a "TransactionStatus URL" which is obviously this back-channel. Is it right that something like a "transaction status controller" is still needed to specify and not yet implemented in aimeos/aimeos_pay? Something like https://github.com/quafzi/payone-magent ... roller.php, which is in this case implemented for Magento.After the user has completed their details on the PAYONE site, a notification of the result will be sent back to your merchant site, and then the user will be returned to either the "success" page or the "failure" page. No data will be carried with that redirect, so the transaction details must be retained in the session to match up with the results in the notification back-channel.
In the function updateSync of typo3conf\ext\aimeos_pay\Resources\Private\Extensions\ai-payments\lib\custom\src\MShop\Service\Provider\Payment\OmniPay.php I see no chance to succeed. This would be my second approach.
Is it right that the transaction status controller stuff is missing here? What would you recommend to do now? And is there something new regarding this topic?
Many thanks in advance!!!
TYPO3 7.6.15, Aimeos web shop 17.3.0, PHP version 5.6.30-0+deb8u1, Linux
Re: Transaction Status Controller
No, you don't need to implement any controller. The updateSync() method of the Omnipay provider in the ai-payments extensions accepts the notifications sent by the PayOne server. The URL you have to enter in the PayOne interface must point to the "checkout update" page that contains the Aimeos plugin of the same name.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Transaction Status Controller
Hello!
Many thanks for your answer!
The expressions defined in https://github.com/aimeoscom/ai-payment ... y.php#L457 and https://github.com/aimeoscom/ai-payment ... y.php#L462 are always evaluated to false. Therefore the order object is always returned unchanged (please, see https://github.com/aimeoscom/ai-payment ... y.php#L467).
Is there something wrong with the code or is something missing?
Could provide me some further help, please?
Again, many thanks in advance!!!
Many thanks for your answer!
Now I am facing the problem that in the method updateSync() (https://github.com/aimeoscom/ai-payment ... mniPay.php) the order object will not be updated. I am using the "Payone_ShopFrontend" gateway as it is suggested on the site https://aimeos.org/docs/User_Manual/Adm ... ist#Payone.The updateSync() method of the Omnipay provider in the ai-payments extensions accepts the notifications sent by the PayOne server.
The expressions defined in https://github.com/aimeoscom/ai-payment ... y.php#L457 and https://github.com/aimeoscom/ai-payment ... y.php#L462 are always evaluated to false. Therefore the order object is always returned unchanged (please, see https://github.com/aimeoscom/ai-payment ... y.php#L467).
Is there something wrong with the code or is something missing?
I have entered the mentioned page for the "TransactionStatus URL" in the PAYONE interface but as a response always "No service for code "" found" is given. The method "process" inside typo3conf\ext\MYEXTENSIONKEY\Resources\Private\Extensions\MYEXTENSIONKEY\client\html\src\Client\Html\Checkout\Update\Customized.php (copied from the original source https://github.com/aimeos/ai-client-htm ... andard.php) tries to access the service provider code and the order id from the associated view (https://github.com/aimeos/ai-client-htm ... d.php#L288) but without success. The problem is that PAYONE calls the update page without context and apparently the parameters are not there.The URL you have to enter in the PayOne interface must point to the "checkout update" page that contains the Aimeos plugin of the same name.
Could provide me some further help, please?
Again, many thanks in advance!!!
Re: Transaction Status Controller
Dennis wrote: The expressions defined in https://github.com/aimeoscom/ai-payment ... y.php#L457 and https://github.com/aimeoscom/ai-payment ... y.php#L462 are always evaluated to false. Therefore the order object is always returned unchanged (please, see https://github.com/aimeoscom/ai-payment ... y.php#L467).
The problem starts there as the URL contains no order ID:
https://github.com/aimeoscom/ai-payment ... y.php#L440
The solution would be to extend a "PayOne" specific class from the OmniPay class and overwrite the updateSync() method. Instead of checking for "orderid", it must look for "reference" instead. A patch is very welcome

Try to add "&code=..." to the URL you've configured in the PayOne admin interface where "..." is the code you've entered for the payment service item in the "service" tab of the Aimeos expert mode admin interface, e.g. "payone". We need at least to know which service provider is used and the code is static compared to the order ID.Dennis wrote: I have entered the mentioned page for the "TransactionStatus URL" in the PAYONE interface but as a response always "No service for code "" found" is given. The method "process" inside typo3conf\ext\MYEXTENSIONKEY\Resources\Private\Extensions\MYEXTENSIONKEY\client\html\src\Client\Html\Checkout\Update\Customized.php (copied from the original source https://github.com/aimeos/ai-client-htm ... andard.php) tries to access the service provider code and the order id from the associated view (https://github.com/aimeos/ai-client-htm ... d.php#L288) but without success. The problem is that PAYONE calls the update page without context and apparently the parameters are not there.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Transaction Status Controller
Hey,
so, i understand you right, that you consider that the payone-module ist broken? We didn't tried to patch the module or rewrite it, because we thought it were working as we read the following twitter status:
https://twitter.com/aimeos/status/768354058335846400
We are using multiple service-providers, for different payment types (like payone-creditcard, payone-paypal, etc.).
Best regards
Kai
so, i understand you right, that you consider that the payone-module ist broken? We didn't tried to patch the module or rewrite it, because we thought it were working as we read the following twitter status:
https://twitter.com/aimeos/status/768354058335846400
We are using multiple service-providers, for different payment types (like payone-creditcard, payone-paypal, etc.).
Best regards
Kai
Re: Transaction Status Controller
The payment itself works but the status update in the Aimeos shop doesn't yield the expected result.Kai wrote:so, i understand you right, that you consider that the payone-module ist broken?
That shouldn't matter. Just choose one of them.Kai wrote: We are using multiple service-providers, for different payment types (like payone-creditcard, payone-paypal, etc.).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
