@lancom/shared 0.0.238 → 0.0.239
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -179,7 +179,7 @@ export default {
|
|
|
179
179
|
this.$emit('next');
|
|
180
180
|
} else {
|
|
181
181
|
this.$nextTick(async () => {
|
|
182
|
-
const message = `Unfortunately our payment gateway has reported the following error: '${this.errorMessage}'. Please check your card number and try again. Alternatively you can proceed with a 'pay later' order and receive
|
|
182
|
+
const message = `Unfortunately our payment gateway has reported the following error: '${this.errorMessage}'. Please check your card number and try again. Alternatively you can proceed with a 'pay later' order and receive an email confirmation now and pay via credit card or direct deposit`;
|
|
183
183
|
const options = { submitLabel: 'PAY LATER', cancelLabel: 'TRY AGAIN', warning: true };
|
|
184
184
|
const isSwitchToDeposit = await this.showConfirmationModal(message, options);
|
|
185
185
|
if (isSwitchToDeposit) {
|
|
@@ -35,8 +35,7 @@ export default {
|
|
|
35
35
|
async convertToOrder(option) {
|
|
36
36
|
try {
|
|
37
37
|
this.processing = true;
|
|
38
|
-
|
|
39
|
-
this.order = await this.createOrder({ ...option, recaptchaToken });
|
|
38
|
+
this.order = await this.createOrder({ ...option });
|
|
40
39
|
this.setOrder(this.order);
|
|
41
40
|
gtm.purchase(this.order);
|
|
42
41
|
gapis.surveyOptin(this.order, this.shop);
|
|
@@ -51,11 +50,11 @@ export default {
|
|
|
51
50
|
async createOrder(option) {
|
|
52
51
|
const recaptchaToken = await this.getRecaptcha('create_order');
|
|
53
52
|
const orderData = {
|
|
54
|
-
recaptchaToken,
|
|
55
53
|
shop: this.shop._id,
|
|
56
54
|
country: this.country?._id,
|
|
57
55
|
currency: this.currency?._id,
|
|
58
|
-
...convertQuoteToOrder(this.quote, option)
|
|
56
|
+
...convertQuoteToOrder(this.quote, option),
|
|
57
|
+
recaptchaToken
|
|
59
58
|
};
|
|
60
59
|
return await api.createOrder(orderData, this.shop._id);
|
|
61
60
|
}
|