Basket not cleared after 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!
edi
Posts: 3
Joined: 17 Jun 2019, 14:59

Basket not cleared after payment

Post by edi » 17 Jun 2019, 15:12

Bei Verwendung der Zahlungsmethode "Vorauskassa" oder "SEPA Lastschrift", Provider PrePay und dem Parameter "payment.url-success" erfolgt anschließend kein Update des Warenkorbes. Die Artikel sind immer noch im Warenkorb enthalten.

Ohne dern Parameter: "payment.url-success" kommt die Seite /checkout/co/process mit "Sie werden jetzt zu unserem Zahlungsanbieter weiter geleitet"" Klickt man auf den Button "Weiter" passiert leider nichts. Ich denke die Seite wird erneut aufgerufen. Die Order wird mit Pay status "unfinished" gespeichert.

Typo3: 8.7.25, aimeos 18.10.7

Was muss ich tun, damit die Order abgeschlossen und der Warenkorb gelöscht wird?

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

Re: Basket not cleared after payment

Post by aimeos » 18 Jun 2019, 07:44

Please ask questions in English as this is the official language in the forum.
edi wrote:When using the payment method "Prepayment" or "SEPA Direct Debit", Provider PrePay and the parameter "payment.url-success", the shopping cart will not be updated afterwards. The articles are still in the shopping cart.

Without the parameter: "payment.url-success" the page /checkout/co/process comes with "You will now be forwarded to our payment provider"". If you click on the button "Next" nothing happens. I think the page will be called again. The order will be saved with Pay status "unfinished".

Typo3: 8.7.25, aimeos 18.10.7

What do I have to do to complete the order and delete the shopping cart?
The "payment.url-success" parameter is automatically set and should only be overwritten in special cases. Please check if the Checkout Standard plugin has set the page for the confirmation page in it's flexform.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

edi
Posts: 3
Joined: 17 Jun 2019, 14:59

Re: Basket not cleared after payment

Post by edi » 18 Jun 2019, 07:52

Thank you for your support.
Selected Confirmation Page was hidden, therefore process failed. Set it to active, now confirmation page works, but shopping-cart still has entries.

How to extend Pre-Paid provider in function process(...) to clear the cart?

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

Re: Basket not cleared after payment

Post by aimeos » 18 Jun 2019, 09:44

Basket should be cleared automatically if nothing goes wrong because in PrePay provider:
https://github.com/aimeos/aimeos-core/b ... ay.php#L61
and in HTML client:
https://github.com/aimeos/ai-client-htm ... d.php#L334
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

edi
Posts: 3
Joined: 17 Jun 2019, 14:59

Re: Basket not cleared after payment

Post by edi » 18 Jun 2019, 10:12

This seems to be a problem, if you have a small basket icon on top or anywhere on page. This basket does not sync with the real basket.
Problem is solved, by disabling the basket (via typoscript) on Confirmation-page.

Post Reply