Payment service 'process' not being called

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!
User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Payment service 'process' not being called

Post by aimeos » 05 Jun 2021, 06:38

If you remove these lines, the customer will be sent to the payment gateway even if the total basket value is 0.00 and they must enter their credit card details for example. Most customers will not understand that and cancel the order. Thus, the payment gateway must be skipped if the basket total is 0.00.

The way to go is to skip the payment gateway and redirect the customer directly to the confirmation page while passing the service code so the updateSync() methods of the payment service provider is called. There you can add your code you need but some payment service providers (like PayPal) will throw an error in that case because there's no transaction ID passed and they currently don't ignore that condition.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

createanet
Posts: 72
Joined: 22 Mar 2021, 16:56

Re: Payment service 'process' not being called

Post by createanet » 07 Jun 2021, 09:08

That makes total sense, thanks for clarifying.

I'll open a pull request with the suggested changes now.

Post Reply