@hmcts/ccpay-web-component 5.2.7-beta03 → 5.2.7-beta05
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.
- package/bundles/hmcts-ccpay-web-component.umd.js +30 -27
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/lib/components/pba-payment/pba-payment.component.js +30 -24
- package/esm2015/lib/services/payment-view/payment-view.service.js +1 -4
- package/fesm2015/hmcts-ccpay-web-component.js +29 -26
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/pba-payment/pba-payment.component.d.ts.map +1 -1
- package/lib/services/payment-view/payment-view.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -931,9 +931,6 @@
|
|
|
931
931
|
var randomKey = 'idam-key-' + Math.random().toString().split('.').join('-');
|
|
932
932
|
body['idempotency_key'] = randomKey;
|
|
933
933
|
var url = this.paymentLibService.API_ROOT + "/service-request/" + serviceRef + "/pba-payments";
|
|
934
|
-
setTimeout(function () {
|
|
935
|
-
console.log('Good Night!');
|
|
936
|
-
}, 4000);
|
|
937
934
|
return this.https.post(url, body);
|
|
938
935
|
};
|
|
939
936
|
PaymentViewService.prototype.postBSPayments = function (body) {
|
|
@@ -7243,30 +7240,36 @@
|
|
|
7243
7240
|
this.isPBAAccountPaymentSuccess = false;
|
|
7244
7241
|
this.isContinueButtondisabled = true;
|
|
7245
7242
|
if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
|
|
7246
|
-
var
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
_this.
|
|
7259
|
-
}
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7243
|
+
var requestBody_1 = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef, this.orgName);
|
|
7244
|
+
console.log('antes!');
|
|
7245
|
+
setTimeout(function () {
|
|
7246
|
+
console.log('primero!');
|
|
7247
|
+
_this.paymentViewService.postPBAaccountPayment(_this.pbaPayOrderRef.orderRefId, requestBody_1)
|
|
7248
|
+
.subscribe(function (r) {
|
|
7249
|
+
try {
|
|
7250
|
+
_this.pbaAccountrPaymentResult = JSON.parse(r);
|
|
7251
|
+
}
|
|
7252
|
+
catch (e) {
|
|
7253
|
+
_this.pbaAccountrPaymentResult = r;
|
|
7254
|
+
}
|
|
7255
|
+
_this.isPBAAccountPaymentSuccess = true;
|
|
7256
|
+
}, function (e) {
|
|
7257
|
+
if (e.status == '402') {
|
|
7258
|
+
_this.isInSufficiantFund = true;
|
|
7259
|
+
}
|
|
7260
|
+
else if (e.status == '410') {
|
|
7261
|
+
_this.isPBAAccountNotExist = true;
|
|
7262
|
+
}
|
|
7263
|
+
else if (e.status == '412') {
|
|
7264
|
+
_this.isPBAAccountHold = true;
|
|
7265
|
+
}
|
|
7266
|
+
else {
|
|
7267
|
+
_this.isPBAServerError = true;
|
|
7268
|
+
}
|
|
7269
|
+
});
|
|
7270
|
+
console.log('despues!');
|
|
7271
|
+
}, 5000);
|
|
7272
|
+
console.log('No te espero!');
|
|
7270
7273
|
}
|
|
7271
7274
|
else {
|
|
7272
7275
|
this.isPBAServerError = true;
|