Stripe Aimeos Payment

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!
tenkraD
Advanced
Posts: 110
Joined: 25 Jul 2017, 08:38

Stripe Aimeos Payment

Post by tenkraD » 06 Mar 2019, 16:27

Hi all,
I have setted up stripe with the aimeos payment extension.
I had to make some changes on the file Stripe.php
Dir: aimeos_pay\Resources\Private\Extensions\ai-payments\lib\custom\src\MShop\Service\Provider\Payment\Stripe.php

To be able to update aimeos payment extension, i would like to make the changes in Stripe.php Class in my own typo3 extension.

Question 1: Where and how do i have to register this new class?

Question 2: Where and how can i change the Template File Process-Body-Standard.php just for the Service stripe?
Dir: ext\aimeos\Resources\Private\Extensions\ai-client-html\client\html\templates\checkout\standard\process-body-standard.php

Many thanks, tenkraD

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

Re: Stripe Aimeos Payment

Post by aimeos » 07 Mar 2019, 16:38

Which changes did you make for Stripe? Are they interesting for others too or fix a bug?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

tenkraD
Advanced
Posts: 110
Joined: 25 Jul 2017, 08:38

Re: Stripe Aimeos Payment

Post by tenkraD » 07 Mar 2019, 21:08

the most important was that i had to change the js script for the token.
your view expect now a hidden field that is named like <input type="hidden" name="ai[paymenttoken]" value="">
and not just name="paymenttoken".

after this the token was working as expected.

and i also changed the fields to displaying a card item.

in the template i had also changed to mount the stripe js elements to a div and not to the input element. because divs alows to have child elements added, inputs elements dosent.

but i would very apreciate if u have an answer to my 2 original questions

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

Re: Stripe Aimeos Payment

Post by aimeos » 08 Mar 2019, 17:24

Can you make a PR with your changes?

Regarding your questions:
1.) You can subclass the Stripe class to a Mystripe class and use that as name for the service provider
2.) That's not possible and it was the reason asking for what you've changed. We need to integrate that into the ai-client-html package
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

tenkraD
Advanced
Posts: 110
Joined: 25 Jul 2017, 08:38

Re: Stripe Aimeos Payment

Post by tenkraD » 09 Mar 2019, 07:58

Where do i have to make the pr?

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

Re: Stripe Aimeos Payment

Post by aimeos » 09 Mar 2019, 08:25

In the https://github.com/aimeoscom/ai-payments repo for changes in the Stripe service provider and in the https://github.com/aimeos/ai-client-html repo if changes in the template are necessary
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

tenkraD
Advanced
Posts: 110
Joined: 25 Jul 2017, 08:38

Re: Stripe Aimeos Payment

Post by tenkraD » 09 Mar 2019, 09:30

:) im a bit lost, i never used github before.
i now created an account and oppened an issue on https://github.com/aimeoscom/ai-payments/issues/18

i hope have done it right.

greets

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

Re: Stripe Aimeos Payment

Post by aimeos » 09 Mar 2019, 10:25

Thanks, we will care about the rest :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star


tenkraD
Advanced
Posts: 110
Joined: 25 Jul 2017, 08:38

Re: Stripe Aimeos Payment

Post by tenkraD » 12 Mar 2019, 08:27

Hi admin,
I tried to turn the two commits into pull request. But im not sure if it has worked, i cant find my changed file on the pull request. can u check if it has worked?

https://github.com/aimeoscom/ai-payments/pull/21
- Changed File: lib/custom/src/MShop/Service/Provider/Payment/Stripe.php

https://github.com/aimeos/ai-client-html/pull/62
-Changed File: client/html/templates/checkout/standard/process-body-standard.php

thank you
Last edited by tenkraD on 15 Mar 2019, 12:18, edited 1 time in total.

Post Reply