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

[payum] payum does not store details after user is returned from payment #1607

Conversation

makasim
Copy link
Contributor

@makasim makasim commented Jun 12, 2014

fixes #1602 and probably #1605

/cc @winzou

$details['PAYMENTREQUEST_0_NOTIFYURL'] = $this->tokenFactory->createNotifyToken(
$request->getToken()->getPaymentName(),
$payment
)->getTargetUrl();
$details['PAYMENTREQUEST_0_INVNUM'] = $order->getNumber().'-'.$payment->getId();
$details['PAYMENTREQUEST_0_CURRENCYCODE'] = $order->getCurrency();
$details['PAYMENTREQUEST_0_CURRENCYCODE'] = 'USD';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uhm?
Actually it should be $payment->getCurrenty() as we rely on payment and not order anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

argh, my bad, I put it for debug purpose here to avoid multi-currency issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in dbf8b76

winzou added a commit that referenced this pull request Jun 12, 2014
…ls-after-returning-back

[payum] payum does not store details after user is returned from payment
@winzou winzou merged commit 485c147 into Sylius:master Jun 12, 2014
@winzou
Copy link
Contributor

winzou commented Jun 12, 2014

Let's give it a try, thanks

@makasim makasim deleted the payum-do-not-store-details-after-returning-back branch June 12, 2014 09:27
@winzou
Copy link
Contributor

winzou commented Jun 12, 2014

All good!

@pjedrzejewski
Copy link
Member

Thanks! 👍

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

Successfully merging this pull request may close these issues.

[Payum] Not keeping failure details with Paypal
3 participants