Skip to content

Commit c7a5c70

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-61249' into BUGS-2.0
2 parents cb2bcc4 + 13dc042 commit c7a5c70

File tree

6 files changed

+21
-13
lines changed

6 files changed

+21
-13
lines changed

app/code/Magento/Authorizenet/Controller/Directpost/Payment/Place.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ protected function placeCheckoutOrder()
127127
);
128128
} catch (\Exception $exception) {
129129
$result->setData('error', true);
130-
$result->setData('error_messages', __('Cannot place order.'));
130+
$result->setData('error_messages', __('Unable to place order. Please try again later.'));
131131
}
132132
if ($response instanceof Http) {
133133
$response->representJson($this->jsonHelper->jsonEncode($result));

app/code/Magento/Authorizenet/Test/Unit/Controller/Directpost/Payment/PlaceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public function textExecuteFailedPlaceOrderDataProvider()
279279
{
280280
$objectFailed = new \Magento\Framework\DataObject();
281281
$objectFailed->setData('error', true);
282-
$objectFailed->setData('error_messages', __('Cannot place order.'));
282+
$objectFailed->setData('error_messages', __('Unable to place order. Please try again later.'));
283283

284284
return [
285285
[

app/code/Magento/Authorizenet/i18n/en_US.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Cancel,Cancel
1313
"Something went wrong canceling the transactions.","Something went wrong canceling the transactions."
1414
"There was an error canceling transactions. Please contact us or try again later.","There was an error canceling transactions. Please contact us or try again later."
1515
"We couldn't process your order right now. Please try again later.","We couldn't process your order right now. Please try again later."
16+
"Unable to place order. Please try again later.","Unable to place order. Please try again later."
1617
"amount %1","amount %1"
1718
failed,failed
1819
successful,successful

app/code/Magento/Paypal/view/frontend/web/js/view/payment/method-renderer/payflowpro-method.js

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,24 @@ define(
5252
var self = this;
5353

5454
if (this.validateHandler() && additionalValidators.validate()) {
55-
fullScreenLoader.startLoader();
5655
this.isPlaceOrderActionAllowed(false);
57-
$.when(setPaymentInformationAction(this.messageContainer, {
58-
'method': self.getCode()
59-
})).done(function () {
60-
self.placeOrderHandler().fail(function () {
56+
fullScreenLoader.startLoader();
57+
$.when(
58+
setPaymentInformationAction(this.messageContainer, {'method': self.getCode()})
59+
).done(
60+
function () {
61+
self.placeOrderHandler().fail(
62+
function () {
63+
fullScreenLoader.stopLoader();
64+
}
65+
);
66+
}
67+
).always(
68+
function () {
69+
self.isPlaceOrderActionAllowed(true);
6170
fullScreenLoader.stopLoader();
62-
});
63-
}).fail(function () {
64-
fullScreenLoader.stopLoader();
65-
self.isPlaceOrderActionAllowed(true);
66-
});
71+
}
72+
);
6773
}
6874
}
6975
});

app/code/Magento/Quote/Model/QuoteManagement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ public function placeOrder($cartId, PaymentInterface $paymentMethod = null)
354354
$order = $this->submit($quote);
355355

356356
if (null == $order) {
357-
throw new LocalizedException(__('Cannot place order.'));
357+
throw new LocalizedException(__('Unable to place order. Please try again later.'));
358358
}
359359

360360
$this->checkoutSession->setLastQuoteId($quote->getId());

app/code/Magento/Quote/i18n/en_US.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ Shipping,Shipping
2929
"Please specify a shipping method.","Please specify a shipping method."
3030
"Please check the billing address information. %1","Please check the billing address information. %1"
3131
"Please select a valid payment method.","Please select a valid payment method."
32+
"Unable to place order. Please try again later.","Unable to place order. Please try again later."

0 commit comments

Comments
 (0)