fix new card call
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user