Twint as a Payment Option

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!
gizmo
Posts: 24
Joined: 18 Jan 2021, 20:42

Twint as a Payment Option

Post by gizmo » 18 Jan 2021, 20:46

Hi There

I'm looking for a way to integration Twint which is a Swiss Payment App into our Aimeos Webshop.

Does anyone have experience with this? Or do we need to use a payment provider? If so, does anyone have suggestion for one?

Thanks for your Help!

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

Re: Twint as a Payment Option

Post by aimeos » 19 Jan 2021, 18:07

You need a payment provider like Datatrans who handles Twint payments:
https://github.com/academe/omnipay-datatrans

Documentation for setup is available here:
https://aimeos.org/docs/latest/manual/s ... #datatrans
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

gizmo
Posts: 24
Joined: 18 Jan 2021, 20:42

Re: Twint as a Payment Option

Post by gizmo » 21 Jan 2021, 16:15

Thank you I will give it a try

gizmo
Posts: 24
Joined: 18 Jan 2021, 20:42

Re: Twint as a Payment Option

Post by gizmo » 15 Feb 2021, 20:43

So I've created a Test Account at Datatrans and installed the EXT for Aimeos.

Datatrans needs three Urls redirects (success, error and cancel). I could find anything in the documentation about the redirection urls after an external payment provider made the transaction.

What redirect URLs do I have to set, so aimeos works properly?

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

Re: Twint as a Payment Option

Post by aimeos » 16 Feb 2021, 18:05

Aimeos passes the three URLs in each request. If Datatrans needs them nevertheless, you can use the URL of the "thank you" page with the Aimeos "Checkout Confirm" plugin.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

gizmo
Posts: 24
Joined: 18 Jan 2021, 20:42

Re: Twint as a Payment Option

Post by gizmo » 18 Feb 2021, 16:41

I got that working now.

After the Payment is successfull processed with the external payment provider and then it returns to the aimeos shop page I get the following error:
Error after Return from external Payment Provider
Error after Return from external Payment Provider
2021-02-18_17h36_34.png (2.11 KiB) Viewed 2552 times
Here are the POST Request by the aimeos Shop with the Demo Credentials:
POST Request to Payment Provider
POST Request to Payment Provider
2021-02-18_17h33_40.png (29.14 KiB) Viewed 2552 times
And here the POST Request from the Payment Provider to the Aimeos Shop:
POST REquest From Payment Provider
POST REquest From Payment Provider
2021-02-18_17h32_50.png (20.53 KiB) Viewed 2552 times
The return URL is the following: www.myshop.com/confirm?action=confirm&c ... r=Checkout"

Does Aimeos need more information in the POST Request or why does it no find the order after the successful payment?

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

Re: Twint as a Payment Option

Post by aimeos » 20 Feb 2021, 09:02

We've seen that problem before with Datatrans and TYPO3. Since Google Chrome implements the SameSite policy for cookies, it won't send the FE session cookie to your website any more after Datatrans redirects back to your shop. Here's a workaround:
https://github.com/aimeos/aimeos-typo3#security
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply