Problems getting Sofort payment-service to work

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
JamesMoore
Posts: 4
Joined: 15 Mar 2021, 10:55

Problems getting Sofort payment-service to work

Post by JamesMoore » 16 Mar 2021, 11:22

Hi there,

I have a fresh Aimeos Setup with Laravel.
I've tried to add Sofort as a payment-service (through Omnipay)

I've followed these instructions:
https://aimeos.org/docs/User_Manual/Adm ... ist#Sofort

First thing I've noticed is, that Aimeos automatically suggests config-fields that are different from the instructions.
The instructions tell to add the "authorize", "address" and "type" config with a "omnipay." prefix, although Aimeos suggests these config-fields to be without a prefix (and lowercase). Anyway I've tried both, without any luck.
Whenever I choose Sofort and try to pay, I immediately get an error:

"Trying to get property 'error' of non-object"

"Processing the payment failed"

Any help?

aimeos/aimeos-laravel 2020.10.6
aimeos/ai-payments 2020.10.7
aimeoscom/omnipay-sofort 3.1.0

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

Re: Problems getting Sofort payment-service to work

Post by aimeos » 17 Mar 2021, 08:43

You are using an outdated documentation. Can you try using that one?
https://aimeos.org/docs/latest/manual/services/#sofort

Can you have a look into the Log panel of the admin backend and check if there are more details about the error available including a stack trace?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

JamesMoore
Posts: 4
Joined: 15 Mar 2021, 10:55

Re: Problems getting Sofort payment-service to work

Post by JamesMoore » 19 Mar 2021, 11:28

aimeos wrote: 17 Mar 2021, 08:43 You are using an outdated documentation. Can you try using that one?
https://aimeos.org/docs/latest/manual/services/#sofort
Thanks for the link, I've followed the manual, but unfortunately:the problem still occurs.
I've tried adding the config-option for testMode case-senstive, but Aimeos adds a lowercase option itself after I save the config.
So I guess the configs are case-insensitive?

Anyway config is as follows at the moment:
https://www.loom.com/i/aa513f4047bc41208db78720fc6f69b4
I've swapped the senstive information for [] here, but of course I've added te client ID, project ID and API key here.
Config settings for "onsite" and "createtoken" are not in the documentation, but automatically added by Aimeos, also when/after I remove them manually.



aimeos wrote: 17 Mar 2021, 08:43 Can you have a look into the Log panel of the admin backend and check if there are more details about the error available including a stack trace?
No log-entry is added when this occurs.
Is there a way I can enable more logging / debugging?

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

Re: Problems getting Sofort payment-service to work

Post by aimeos » 20 Mar 2021, 15:28

JamesMoore wrote: 19 Mar 2021, 11:28 I've tried adding the config-option for testMode case-senstive, but Aimeos adds a lowercase option itself after I save the config. So I guess the configs are case-insensitive?
"testMode" and "testmode" should work alike.
JamesMoore wrote: 19 Mar 2021, 11:28 Config settings for "onsite" and "createtoken" are not in the documentation, but automatically added by Aimeos, also when/after I remove them manually.
Did you try to set "createtoken" to false?
JamesMoore wrote: 19 Mar 2021, 11:28 Is there a way I can enable more logging / debugging?
Only if you get a stack trace in the frontend.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: Problems getting Sofort payment-service to work

Post by stiller » 27 Mar 2021, 12:16

hi.

did you get it going?
seems we are experiencing a similar problem.
typo3-extension-f16/omnipay-sofort-paym ... t3605.html

would be nice if you could share your advance on this.

cheers

Post Reply