payment-information 400 bad request when product quantity is bigger (or equal) than 3magento Plugin is not...
Can't get 5V 3A DC constant
On The Origin of Dissonant Chords
Is it idiomatic to construct against `this`
Why did some of my point & shoot film photos come back with one third light white or orange?
What does the integral of a function times a function of a random variable represent, conceptually?
How can Republicans who favour free markets, consistently express anger when they don't like the outcome of that choice?
How come there are so many candidates for the 2020 Democratic party presidential nomination?
Is there a way to generate a list of distinct numbers such that no two subsets ever have an equal sum?
Implications of cigar-shaped bodies having rings?
"You've called the wrong number" or "You called the wrong number"
How do I deal with a coworker that keeps asking to make small superficial changes to a report, and it is seriously triggering my anxiety?
How would 10 generations of living underground change the human body?
Read line from file and process something
What causes platform events to fail to be published and should I cater for failed platform event creations?
a sore throat vs a strep throat vs strep throat
How to fry ground beef so it is well-browned
How does Captain America channel this power?
Can I criticise the more senior developers around me for not writing clean code?
Thesis on avalanche prediction using One Class SVM
Can someone publish a story that happened to you?
How to pronounce 'c++' in Spanish
Is there really no use for MD5 anymore?
Retract an already submitted recommendation letter (written for an undergrad student)
Multiple options vs single option UI
payment-information 400 bad request when product quantity is bigger (or equal) than 3
magento Plugin is not working on CollectRates method shipping method classNot able to add/update magento2 category post upgrade from 1.9 to 2.1.0Magento 2.2.2 REST API - I need to change the customer password using REST API“Class mixed does not exist” with only one array param in the body in Magento 2How to override webapi.xml in custom module?Add configure product in Cart using Magento 2 API facing an issue“Area code is not set” in var/logwhen click on place order then paypal showing error in Magento2Magento 2.2.6- After Migration all default Payment Methods are not working fineMagento2 - Checkout shipping method when click Ship here
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I've recently reviewed a lot of 400 errors on payment-information API
My problem is a little different, since it happens only when the product quantity is 3 or more.
I select the shipping method (the problem occurs with all shipping methods) and when I click the "place order" button I got this error (sorry the language is Italian)

if I set the amount to 2 or less (even for multiple products) the order is placed correctly.
So it's OK to buy:
- 2 item A
- 1 item B
- 2 item C
but it is not OK to buy:
- 3 items A
- 1 item B
- 2 items C
I'm unable to debug this issue, since the only trace I get is this one:
#0 [*MAGENTO_PATH*]/vendor/magento/framework/Interception/Interceptor.php(146): MagentoCheckoutModelPaymentInformationManagement->savePaymentInformationAndPlaceOrder(34, Object(MagentoQuoteModelQuotePayment), Object(MagentoQuoteModelQuoteAddress))↵#
#1 [*MAGENTO_PATH*]/var/generation/Magento/Checkout/Model/PaymentInformationManagement/Interceptor.php(26): MagentoCheckoutModelPaymentInformationManagementInterceptor->___callPlugins('savePaymentInfo...', Array, Array)↵#
#2 [internal function]: MagentoCheckoutModelPaymentInformationManagementInterceptor->savePaymentInformationAndPlaceOrder(34, Object(MagentoQuoteModelQuotePayment), Object(MagentoQuoteModelQuoteAddress))↵#
#3 [*MAGENTO_PATH*]/vendor/magento/module-webapi/Controller/Rest.php(307): call_user_func_array(Array, Array)↵#
#4 [*MAGENTO_PATH*]/vendor/magento/module-webapi/Controller/Rest.php(216): MagentoWebapiControllerRest->processApiRequest()↵#
#5 [*MAGENTO_PATH*]/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(37): MagentoWebapiControllerRest->dispatch(Object(MagentoFrameworkAppRequestHttp))↵#
#6 [*MAGENTO_PATH*]/vendor/magento/framework/App/Http.php(135): MagentoWebapiControllerRestInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))↵#
#7 [*MAGENTO_PATH*]/vendor/magento/framework/App/Bootstrap.php(258): MagentoFrameworkAppHttp->launch()↵#
#8 [*MAGENTO_PATH*]/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp))↵#
#9 {main}
but no actual errors are stored in logfiles.
Can someone help me debug this problem?
Thanks a lot
UPDATE 1:
The system is crashing with the error message "you cannot order more than 5 items" (max order size is set to 5 by me)
If I order 3, 4 or 5 I get this error in the e->getMessage() of the exception thrown by magento/module-checkout/Model/PaymentInformationManagement.php:71
If I order more than 5 items I get the standard frontend error. is it possible that the amount of items is doubled when I order a Simple product associated to a Configurable product?
magento2 checkout debugging
bumped to the homepage by Community♦ 38 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I've recently reviewed a lot of 400 errors on payment-information API
My problem is a little different, since it happens only when the product quantity is 3 or more.
I select the shipping method (the problem occurs with all shipping methods) and when I click the "place order" button I got this error (sorry the language is Italian)

if I set the amount to 2 or less (even for multiple products) the order is placed correctly.
So it's OK to buy:
- 2 item A
- 1 item B
- 2 item C
but it is not OK to buy:
- 3 items A
- 1 item B
- 2 items C
I'm unable to debug this issue, since the only trace I get is this one:
#0 [*MAGENTO_PATH*]/vendor/magento/framework/Interception/Interceptor.php(146): MagentoCheckoutModelPaymentInformationManagement->savePaymentInformationAndPlaceOrder(34, Object(MagentoQuoteModelQuotePayment), Object(MagentoQuoteModelQuoteAddress))↵#
#1 [*MAGENTO_PATH*]/var/generation/Magento/Checkout/Model/PaymentInformationManagement/Interceptor.php(26): MagentoCheckoutModelPaymentInformationManagementInterceptor->___callPlugins('savePaymentInfo...', Array, Array)↵#
#2 [internal function]: MagentoCheckoutModelPaymentInformationManagementInterceptor->savePaymentInformationAndPlaceOrder(34, Object(MagentoQuoteModelQuotePayment), Object(MagentoQuoteModelQuoteAddress))↵#
#3 [*MAGENTO_PATH*]/vendor/magento/module-webapi/Controller/Rest.php(307): call_user_func_array(Array, Array)↵#
#4 [*MAGENTO_PATH*]/vendor/magento/module-webapi/Controller/Rest.php(216): MagentoWebapiControllerRest->processApiRequest()↵#
#5 [*MAGENTO_PATH*]/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(37): MagentoWebapiControllerRest->dispatch(Object(MagentoFrameworkAppRequestHttp))↵#
#6 [*MAGENTO_PATH*]/vendor/magento/framework/App/Http.php(135): MagentoWebapiControllerRestInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))↵#
#7 [*MAGENTO_PATH*]/vendor/magento/framework/App/Bootstrap.php(258): MagentoFrameworkAppHttp->launch()↵#
#8 [*MAGENTO_PATH*]/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp))↵#
#9 {main}
but no actual errors are stored in logfiles.
Can someone help me debug this problem?
Thanks a lot
UPDATE 1:
The system is crashing with the error message "you cannot order more than 5 items" (max order size is set to 5 by me)
If I order 3, 4 or 5 I get this error in the e->getMessage() of the exception thrown by magento/module-checkout/Model/PaymentInformationManagement.php:71
If I order more than 5 items I get the standard frontend error. is it possible that the amount of items is doubled when I order a Simple product associated to a Configurable product?
magento2 checkout debugging
bumped to the homepage by Community♦ 38 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I've recently reviewed a lot of 400 errors on payment-information API
My problem is a little different, since it happens only when the product quantity is 3 or more.
I select the shipping method (the problem occurs with all shipping methods) and when I click the "place order" button I got this error (sorry the language is Italian)

if I set the amount to 2 or less (even for multiple products) the order is placed correctly.
So it's OK to buy:
- 2 item A
- 1 item B
- 2 item C
but it is not OK to buy:
- 3 items A
- 1 item B
- 2 items C
I'm unable to debug this issue, since the only trace I get is this one:
#0 [*MAGENTO_PATH*]/vendor/magento/framework/Interception/Interceptor.php(146): MagentoCheckoutModelPaymentInformationManagement->savePaymentInformationAndPlaceOrder(34, Object(MagentoQuoteModelQuotePayment), Object(MagentoQuoteModelQuoteAddress))↵#
#1 [*MAGENTO_PATH*]/var/generation/Magento/Checkout/Model/PaymentInformationManagement/Interceptor.php(26): MagentoCheckoutModelPaymentInformationManagementInterceptor->___callPlugins('savePaymentInfo...', Array, Array)↵#
#2 [internal function]: MagentoCheckoutModelPaymentInformationManagementInterceptor->savePaymentInformationAndPlaceOrder(34, Object(MagentoQuoteModelQuotePayment), Object(MagentoQuoteModelQuoteAddress))↵#
#3 [*MAGENTO_PATH*]/vendor/magento/module-webapi/Controller/Rest.php(307): call_user_func_array(Array, Array)↵#
#4 [*MAGENTO_PATH*]/vendor/magento/module-webapi/Controller/Rest.php(216): MagentoWebapiControllerRest->processApiRequest()↵#
#5 [*MAGENTO_PATH*]/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(37): MagentoWebapiControllerRest->dispatch(Object(MagentoFrameworkAppRequestHttp))↵#
#6 [*MAGENTO_PATH*]/vendor/magento/framework/App/Http.php(135): MagentoWebapiControllerRestInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))↵#
#7 [*MAGENTO_PATH*]/vendor/magento/framework/App/Bootstrap.php(258): MagentoFrameworkAppHttp->launch()↵#
#8 [*MAGENTO_PATH*]/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp))↵#
#9 {main}
but no actual errors are stored in logfiles.
Can someone help me debug this problem?
Thanks a lot
UPDATE 1:
The system is crashing with the error message "you cannot order more than 5 items" (max order size is set to 5 by me)
If I order 3, 4 or 5 I get this error in the e->getMessage() of the exception thrown by magento/module-checkout/Model/PaymentInformationManagement.php:71
If I order more than 5 items I get the standard frontend error. is it possible that the amount of items is doubled when I order a Simple product associated to a Configurable product?
magento2 checkout debugging
I've recently reviewed a lot of 400 errors on payment-information API
My problem is a little different, since it happens only when the product quantity is 3 or more.
I select the shipping method (the problem occurs with all shipping methods) and when I click the "place order" button I got this error (sorry the language is Italian)

if I set the amount to 2 or less (even for multiple products) the order is placed correctly.
So it's OK to buy:
- 2 item A
- 1 item B
- 2 item C
but it is not OK to buy:
- 3 items A
- 1 item B
- 2 items C
I'm unable to debug this issue, since the only trace I get is this one:
#0 [*MAGENTO_PATH*]/vendor/magento/framework/Interception/Interceptor.php(146): MagentoCheckoutModelPaymentInformationManagement->savePaymentInformationAndPlaceOrder(34, Object(MagentoQuoteModelQuotePayment), Object(MagentoQuoteModelQuoteAddress))↵#
#1 [*MAGENTO_PATH*]/var/generation/Magento/Checkout/Model/PaymentInformationManagement/Interceptor.php(26): MagentoCheckoutModelPaymentInformationManagementInterceptor->___callPlugins('savePaymentInfo...', Array, Array)↵#
#2 [internal function]: MagentoCheckoutModelPaymentInformationManagementInterceptor->savePaymentInformationAndPlaceOrder(34, Object(MagentoQuoteModelQuotePayment), Object(MagentoQuoteModelQuoteAddress))↵#
#3 [*MAGENTO_PATH*]/vendor/magento/module-webapi/Controller/Rest.php(307): call_user_func_array(Array, Array)↵#
#4 [*MAGENTO_PATH*]/vendor/magento/module-webapi/Controller/Rest.php(216): MagentoWebapiControllerRest->processApiRequest()↵#
#5 [*MAGENTO_PATH*]/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(37): MagentoWebapiControllerRest->dispatch(Object(MagentoFrameworkAppRequestHttp))↵#
#6 [*MAGENTO_PATH*]/vendor/magento/framework/App/Http.php(135): MagentoWebapiControllerRestInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))↵#
#7 [*MAGENTO_PATH*]/vendor/magento/framework/App/Bootstrap.php(258): MagentoFrameworkAppHttp->launch()↵#
#8 [*MAGENTO_PATH*]/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp))↵#
#9 {main}
but no actual errors are stored in logfiles.
Can someone help me debug this problem?
Thanks a lot
UPDATE 1:
The system is crashing with the error message "you cannot order more than 5 items" (max order size is set to 5 by me)
If I order 3, 4 or 5 I get this error in the e->getMessage() of the exception thrown by magento/module-checkout/Model/PaymentInformationManagement.php:71
If I order more than 5 items I get the standard frontend error. is it possible that the amount of items is doubled when I order a Simple product associated to a Configurable product?
magento2 checkout debugging
magento2 checkout debugging
edited Aug 30 '17 at 15:28
Naraj
asked Aug 29 '17 at 15:42
NarajNaraj
264
264
bumped to the homepage by Community♦ 38 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 38 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The original message is being overwritten as you can see in here:
$this->savePaymentInformation($cartId, $email, $paymentMethod, $billingAddress);
try {
$orderId = $this->cartManagement->placeOrder($cartId);
} catch (Exception $e) {
throw new CouldNotSaveException(
__('An error occurred on the server. Please try to place the order again.'),
$e
);
}
return $orderId;
This happens in:
magento/module-checkout/Model/GuestPaymentInformationManagement.php:83
and
magento/module-checkout/Model/PaymentInformationManagement.php:71
Have a look to the message ($e->getMessage()) before it gets overridden.
That should help you discover why you cannot place an order when quantity is 3 or more.
Thanks for the aid, i've logged the real error message and its "you can't order more than 5 products (yes, i've set 5 as max order size). i'm updating the question, since it's a really strange beavior, if I order 1 or 2 the order is placed. if I order 3, 4, 5 I get this crash with e->getMessage() = "you can't order more than 5 items" and if I order 6 or more I get a frontend message saying "you can't order more than 5 items
– Naraj
Aug 30 '17 at 15:17
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f191083%2fpayment-information-400-bad-request-when-product-quantity-is-bigger-or-equal-t%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The original message is being overwritten as you can see in here:
$this->savePaymentInformation($cartId, $email, $paymentMethod, $billingAddress);
try {
$orderId = $this->cartManagement->placeOrder($cartId);
} catch (Exception $e) {
throw new CouldNotSaveException(
__('An error occurred on the server. Please try to place the order again.'),
$e
);
}
return $orderId;
This happens in:
magento/module-checkout/Model/GuestPaymentInformationManagement.php:83
and
magento/module-checkout/Model/PaymentInformationManagement.php:71
Have a look to the message ($e->getMessage()) before it gets overridden.
That should help you discover why you cannot place an order when quantity is 3 or more.
Thanks for the aid, i've logged the real error message and its "you can't order more than 5 products (yes, i've set 5 as max order size). i'm updating the question, since it's a really strange beavior, if I order 1 or 2 the order is placed. if I order 3, 4, 5 I get this crash with e->getMessage() = "you can't order more than 5 items" and if I order 6 or more I get a frontend message saying "you can't order more than 5 items
– Naraj
Aug 30 '17 at 15:17
add a comment |
The original message is being overwritten as you can see in here:
$this->savePaymentInformation($cartId, $email, $paymentMethod, $billingAddress);
try {
$orderId = $this->cartManagement->placeOrder($cartId);
} catch (Exception $e) {
throw new CouldNotSaveException(
__('An error occurred on the server. Please try to place the order again.'),
$e
);
}
return $orderId;
This happens in:
magento/module-checkout/Model/GuestPaymentInformationManagement.php:83
and
magento/module-checkout/Model/PaymentInformationManagement.php:71
Have a look to the message ($e->getMessage()) before it gets overridden.
That should help you discover why you cannot place an order when quantity is 3 or more.
Thanks for the aid, i've logged the real error message and its "you can't order more than 5 products (yes, i've set 5 as max order size). i'm updating the question, since it's a really strange beavior, if I order 1 or 2 the order is placed. if I order 3, 4, 5 I get this crash with e->getMessage() = "you can't order more than 5 items" and if I order 6 or more I get a frontend message saying "you can't order more than 5 items
– Naraj
Aug 30 '17 at 15:17
add a comment |
The original message is being overwritten as you can see in here:
$this->savePaymentInformation($cartId, $email, $paymentMethod, $billingAddress);
try {
$orderId = $this->cartManagement->placeOrder($cartId);
} catch (Exception $e) {
throw new CouldNotSaveException(
__('An error occurred on the server. Please try to place the order again.'),
$e
);
}
return $orderId;
This happens in:
magento/module-checkout/Model/GuestPaymentInformationManagement.php:83
and
magento/module-checkout/Model/PaymentInformationManagement.php:71
Have a look to the message ($e->getMessage()) before it gets overridden.
That should help you discover why you cannot place an order when quantity is 3 or more.
The original message is being overwritten as you can see in here:
$this->savePaymentInformation($cartId, $email, $paymentMethod, $billingAddress);
try {
$orderId = $this->cartManagement->placeOrder($cartId);
} catch (Exception $e) {
throw new CouldNotSaveException(
__('An error occurred on the server. Please try to place the order again.'),
$e
);
}
return $orderId;
This happens in:
magento/module-checkout/Model/GuestPaymentInformationManagement.php:83
and
magento/module-checkout/Model/PaymentInformationManagement.php:71
Have a look to the message ($e->getMessage()) before it gets overridden.
That should help you discover why you cannot place an order when quantity is 3 or more.
edited Aug 29 '17 at 23:23
answered Aug 29 '17 at 15:59
diazwatsondiazwatson
1,59411425
1,59411425
Thanks for the aid, i've logged the real error message and its "you can't order more than 5 products (yes, i've set 5 as max order size). i'm updating the question, since it's a really strange beavior, if I order 1 or 2 the order is placed. if I order 3, 4, 5 I get this crash with e->getMessage() = "you can't order more than 5 items" and if I order 6 or more I get a frontend message saying "you can't order more than 5 items
– Naraj
Aug 30 '17 at 15:17
add a comment |
Thanks for the aid, i've logged the real error message and its "you can't order more than 5 products (yes, i've set 5 as max order size). i'm updating the question, since it's a really strange beavior, if I order 1 or 2 the order is placed. if I order 3, 4, 5 I get this crash with e->getMessage() = "you can't order more than 5 items" and if I order 6 or more I get a frontend message saying "you can't order more than 5 items
– Naraj
Aug 30 '17 at 15:17
Thanks for the aid, i've logged the real error message and its "you can't order more than 5 products (yes, i've set 5 as max order size). i'm updating the question, since it's a really strange beavior, if I order 1 or 2 the order is placed. if I order 3, 4, 5 I get this crash with e->getMessage() = "you can't order more than 5 items" and if I order 6 or more I get a frontend message saying "you can't order more than 5 items
– Naraj
Aug 30 '17 at 15:17
Thanks for the aid, i've logged the real error message and its "you can't order more than 5 products (yes, i've set 5 as max order size). i'm updating the question, since it's a really strange beavior, if I order 1 or 2 the order is placed. if I order 3, 4, 5 I get this crash with e->getMessage() = "you can't order more than 5 items" and if I order 6 or more I get a frontend message saying "you can't order more than 5 items
– Naraj
Aug 30 '17 at 15:17
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f191083%2fpayment-information-400-bad-request-when-product-quantity-is-bigger-or-equal-t%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown