-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[PayumBundle] Added payment total to Paypal Express Checkout request #3577
Conversation
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'; |
There was a problem hiding this comment.
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.
f20e3a9
to
3a1b69b
Compare
3a1b69b
to
19d4693
Compare
…t-fixes [PayumBundle] Added payment total to Paypal Express Checkout request
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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
…heckout-fixes [PayumBundle] Added payment total to Paypal Express Checkout request