Stripe payment has empty form action
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 payment has empty form action
Hello
We want to switch our main payment provider to Stripe.
The setup is working so far that we can click the buy-button and be forwarded to https://example.com/onlineshop/checkout/co/process where we can insert the credit card information (strangely without a field to insert the credit card owner).
Problem:
After we submit this form, a POST request to the same URL will be sent with a payload like `cp_payment=1&paymenttoken=tok_ABC123XYZ`, resulting in a page showing "You will now be forwarded to the next step". From there we can not proceed, because a click on the button brings us back to the same URL and we will see the credit card form again.
We noticed that the form on the final page "You will now be forwarded to the next step" has an empty action attribute:
Do you have an idea what the problem could be?
System:
TYPO3 9.5.21 / PHP 7.2
Aimeos TYPO3 Extension 20.7.3
aimeos/ai-payments 2020.07.2
We want to switch our main payment provider to Stripe.
The setup is working so far that we can click the buy-button and be forwarded to https://example.com/onlineshop/checkout/co/process where we can insert the credit card information (strangely without a field to insert the credit card owner).
Problem:
After we submit this form, a POST request to the same URL will be sent with a payload like `cp_payment=1&paymenttoken=tok_ABC123XYZ`, resulting in a page showing "You will now be forwarded to the next step". From there we can not proceed, because a click on the button brings us back to the same URL and we will see the credit card form again.
We noticed that the form on the final page "You will now be forwarded to the next step" has an empty action attribute:
Code: Select all
<form method="POST" action="">
System:
TYPO3 9.5.21 / PHP 7.2
Aimeos TYPO3 Extension 20.7.3
aimeos/ai-payments 2020.07.2
Re: Stripe payment has empty form action
We now tried the setup using a Composer based TYPO3 installation. Unfortunately we experience the same issue.
I think we have tracked the problem down a bit further. We somehow slip into the else statement in https://github.com/aimeos/ai-client-htm ... d.php#L280, although the request's POST body has `cp_payment` set.
I think we have tracked the problem down a bit further. We somehow slip into the else statement in https://github.com/aimeos/ai-client-htm ... d.php#L280, although the request's POST body has `cp_payment` set.
Code: Select all
if( $view->param( 'cs_order', null ) !== null )
{
...
}
elseif( $view->param( 'cp_payment', null ) !== null )
{
...
}
else
{
// we are here
return;
}
Re: Stripe payment has empty form action
Is the "cp_payment" parameter missing so it uses the "else" case?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Stripe payment has empty form action
No, i don't think so. But it is sent as "Form data" and not as GET parameter (but I think it's the same for the Paypal provider)
Re: Stripe payment has empty form action
That's no problem, you only have to find out why the URL for the form is missing
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Stripe payment has empty form action
Can you tell me where the request data will be "transferred" into the view? So maybe I could have a look, why it doesn't seem to be set in Process\Standard?
Re: Stripe payment has empty form action
Maybe there's a JS error somewhere. Stripe does send the payment data via JS and returns only a token. Afterwards, the customer should be redirected to the checkout confirm page.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Stripe payment has empty form action
The payment token that Stripe generates is also sent to the page alongside `cp_payment=1`...
There aren't any JS errors as far as I can tell.
Would it be possible to fix this via the professional support package?
There aren't any JS errors as far as I can tell.
Would it be possible to fix this via the professional support package?
Re: Stripe payment has empty form action
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Stripe payment has empty form action
The problem has been fixed in latest aimeos/ai-client-html:2020.07 and in 2020.10
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
