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

[PayumBundle] Added payment total to Paypal Express Checkout request #3577

Merged

Conversation

GSadee
Copy link
Member

@GSadee GSadee commented Nov 17, 2015

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets
License MIT
Doc PR

}

if (0 !== $paymentTotal = $order->getAdjustmentsTotal(AdjustmentInterface::PAYMENT_ADJUSTMENT)) {
$details['L_PAYMENTREQUEST_0_NAME'.$m] = 'Payment Total';
Copy link
Member

Choose a reason for hiding this comment

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

Should be "Payment Fee Total".

Payment Total alone is really confusing, because this is not really total amount of payment.

@pjedrzejewski pjedrzejewski added Bug Fix Critical Issues and PRs, which are critical and should be fixed ASAP. labels Nov 17, 2015
@pjedrzejewski pjedrzejewski added this to the v0.16.0 milestone Nov 17, 2015
@GSadee GSadee force-pushed the preparing-paypal-express-checkout-fixes branch from f20e3a9 to 3a1b69b Compare November 18, 2015 08:52
@GSadee GSadee force-pushed the preparing-paypal-express-checkout-fixes branch from 3a1b69b to 19d4693 Compare November 18, 2015 08:53
pjedrzejewski pushed a commit that referenced this pull request Nov 18, 2015
…t-fixes

[PayumBundle] Added payment total to Paypal Express Checkout request
@pjedrzejewski pjedrzejewski merged commit f623494 into Sylius:master Nov 18, 2015
@pjedrzejewski
Copy link
Member

Thank you Grzesiu! :)


if (0 !== $paymentTotal = $order->getAdjustmentsTotal(AdjustmentInterface::PAYMENT_ADJUSTMENT)) {
$details['L_PAYMENTREQUEST_0_NAME'.$m] = 'Payment Fee Total';
$details['L_PAYMENTREQUEST_0_AMT'.$m] = round($paymentTotal / 100, 2);
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure it should be hard coded to 2. Some currencies may have different amount of digits after the point.

I am doing it this way https://github.com/Payum/Payum/blob/master/src/Payum/Paypal/ExpressCheckout/Nvp/Action/ConvertPaymentAction.php#L27

Copy link
Member

Choose a reason for hiding this comment

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

We do not have this configuration on currencies yet. :( But we will definitely look into this issue.

@GSadee GSadee deleted the preparing-paypal-express-checkout-fixes branch September 22, 2017 08:31
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
…heckout-fixes

[PayumBundle] Added payment total to Paypal Express Checkout request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Critical Issues and PRs, which are critical and should be fixed ASAP.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants