Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After sucessful Payment , order status wont change and no emails are beeing send #18

Open
MasterGeddon opened this issue Nov 3, 2020 · 9 comments

Comments

@MasterGeddon
Copy link

Hi i am using Typo3 9.5.13 , i configured the cart extension as shown in the tutorial on youtube. After this I configured the payment to be from this paypal extension. The money is beeing transfered in the sandbox accounts , the email adresses are set . But wen i go back to the merchant from the sucessful PayPal payment . No emails are beeing send and the order payment status didnt get updated, neither do i get emails send to the buyer or seller. The configurations for sending emails are set correct , i could get emails with the standard payment method.

Am I missing a configuration ? Or might this be a common problem.

@g-w-h-s
Copy link

g-w-h-s commented Nov 9, 2020

Hi there.
Some problem here:
Typo3 9.5.20, tx_cart and tx_cartpaypal is working.
Paypal payments are successful, but after payment i won't get any emails, whether the buyer or seller.
Is my TypoScript setup wrong?

THANKS A LOT FOR ANY HELP!

TypoScript Setup:

plugin.tx_cartpaypal {
sandbox = 0
business = EMAILADRESSE
}

cartPayPal = PAGE
cartPayPal {
typeNum = {$plugin.tx_cartpaypal.redirectTypeNum}

config {
    disableAllHeaderCode = 1
    xhtml_cleaning = 0
    admPanel = 0
    debug = 0
    no_cache = 1
}

10 < tt_content.list.20.cartpaypal_cart
10.features.requireCHashArgumentForActionArguments = 0

}

plugin.tx_cartpaypal {
sandbox = 0

redirectTypeNum = {$plugin.tx_cartpaypal.redirectTypeNum}

sendEachItemToPaypal = 1

finishers {
    order {
        success {
            400 {
                class = Extcode\Cart\Domain\Finisher\Order\EmailFinisher
            }
            500 {
                class = Extcode\Cart\Domain\Finisher\Order\ClearCartFinisher
            }
        }
    }
}

}

@g-w-h-s
Copy link

g-w-h-s commented Nov 11, 2020

This works! Emails will be send after successful PayPal payment to the buyer and the seller.

TypoScript Setup:

plugin.tx_cart.settings {
buyer {
emailFromAddress = [email protected]
}
seller {
emailFromAddress = [email protected]
emailToAddress = [email protected]
}
}

@MasterGeddon
Copy link
Author

Thanks @g-w-h-s ,
this works for me now too, I am finally getting my emails.
But I still dont get the payment status updated it is still labeled as open and not as paid as it should be.

@j4k3
Copy link

j4k3 commented Jun 7, 2021

Same problem here (since an update of the core?).

Log says:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: Call to a member function setWasOrdered() on null | Error thrown in file /html/typo3/typo3conf/ext/cart_paypal/Classes/Utility/PaymentProcess.php in line 420. Requested URL: https://REDACTED/shop/warenkorb?eID=paypal-payment-api&cHash=364c319918918508cf2ade64f6ab2f7b

I've tried to debug $this->cart on which $this->cart->setWasOrdered(true); is called, but can't get an output.

@medarob
Copy link

medarob commented Oct 20, 2021

tested it with ddev and TYPO3 10.4.20, cart 7.5, cart_paypal 5.0

I set up a Paypal sandbox account and the workflow worked. After the paypal payment was successful I could go back to the merchant website and got the message that the order was successful. Info in my sandbox account shows that the order was paid.

However, in the cart modul the order has still the status open and the price is 0

grafik

grafik

grafik

No emails were sent using the Paypal payment method.

(The e-mail notification via the default payment method "Vorkasse" works.)

@medarob
Copy link

medarob commented Oct 20, 2021

The redirect to the merchant website had to be triggered manually. There was no automatic redirect.
Not sure if that is the default behaviour or if it should be automatically redirect to the webshop?

@andreaswalz
Copy link

andreaswalz commented Dec 1, 2022

successAction not fired?

Typo3 11.4
cart 8.5.2
cart-paypal 6.0.0

Hi,
after finished the payment with paypal I get back to the shop, but it seems, the code for successAction(): is not triggered.
The url is like:
....shop/?tx_cartpaypal_cart[action]=success&tx_cartpaypal_cart[controller]=Order\Payment&tx_ca....
I have included a die() command (in PaymentController.php) but it was never fired.

    public function successAction(): void
    {
        echo("successAction first");
        die();

Any suggestion what I can do? .....

Got the problem: I have installed 'cart-paypal.zip' and not (what is correct): 'cart_paypal.zip'!!!

@kevinlieser
Copy link

kevinlieser commented May 19, 2024

Got the same problem as @medarob - Any news on this? Here also Payment via Paypal do not trigger email notification as well as the payment status is still open. Also got 404 error after redirect from paypal because of chash comparsion failed but fixed that by disabling 404 on chash error.

Any news on this?

@kevinlieser
Copy link

You should try removing htaccess password restrictions for the Paypal IPN to send the notification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants