Stripe Aimeos Payment
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!
Stripe Aimeos Payment
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
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
Re: Stripe Aimeos Payment
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, give us a star
If you like Aimeos, give us a star
Re: Stripe Aimeos Payment
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
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
Re: Stripe Aimeos Payment
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
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, give us a star
If you like Aimeos, give us a star
Re: Stripe Aimeos Payment
Where do i have to make the pr?
Re: Stripe Aimeos Payment
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, give us a star
If you like Aimeos, give us a star
Re: Stripe Aimeos Payment
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
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
Re: Stripe Aimeos Payment
Thanks, we will care about the rest
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Stripe Aimeos Payment
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
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.