fix new card call

This commit is contained in:
CHIEFSOFT\ameye
2024-02-12 14:42:00 -05:00
parent 08eb86b47d
commit d766813bc0
2 changed files with 17 additions and 11 deletions
+13 -11
View File
@@ -399,20 +399,27 @@ export class AddcreditPage implements OnInit {
}
if (this.processor == 5000) {
this.isProcessDisabled = true;
this.payPevCreditData = {
this.payNewCreditData = {
member_id: this.sessionDataProviderService.member_id,
sessionid: this.sessionDataProviderService.session,
uid: this.sessionDataProviderService.member_uid,
currency: this.currency_code,
amount: this.startCreditResult.amount,
credit_reference: this.startCreditResult.credit_reference,
card_uid: this.startCreditResult.card_uid,
cardnumber: this.cardnumber,
cvc: this.cvc,
exp_month: this.exp_month,
exp_year: this.exp_year,
paymenttype: '100',
description:'',
action: 11056,
};
loading.present();
this.wrenchService
.payPrevCard(this.payPevCreditData)
.payNewCard(this.payNewCreditData)
.subscribe((creditResult) => {
loading.dismiss();
console.log("creditResult TOTAL RETURN->", this.creditResult);
@@ -464,25 +471,20 @@ export class AddcreditPage implements OnInit {
}
if (this.processor == 5000) {
this.isProcessDisabled = true;
this.payNewCreditData = {
this.payPevCreditData = {
member_id: this.sessionDataProviderService.member_id,
sessionid: this.sessionDataProviderService.session,
uid: this.sessionDataProviderService.member_uid,
currency: this.currency_code,
amount: this.startCreditResult.amount,
credit_reference: this.startCreditResult.credit_reference,
cardnumber: this.cardnumber,
cvc: this.cvc,
exp_month: this.exp_month,
exp_year: this.exp_year,
paymenttype: '100',
description:'',
card_uid: this.startCreditResult.card_uid,
action: 11056,
};
loading.present();
this.wrenchService
.payPrevCard(this.payNewCreditData)
.payPrevCard(this.payPevCreditData)
.subscribe((creditResult) => {
loading.dismiss();
console.log("creditResult TOTAL RETURN->", this.creditResult);
+4
View File
@@ -349,6 +349,10 @@ export class WrenchService {
return this.getPostData("payprevcard", reqData);
}
payNewCard(reqData){
return this.getPostData("paynewcard", reqData);
}
helpData(reqData){
return this.getPostData("helpdata", reqData);
}