From 22727b5abedf79e686cca4a48a290c2daa4b14a2 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 20 Feb 2019 20:39:40 -0500 Subject: [PATCH] support credit on get token method --- src/app/settings/payment.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/settings/payment.component.ts b/src/app/settings/payment.component.ts index fcac370938..90a4eb0ff1 100644 --- a/src/app/settings/payment.component.ts +++ b/src/app/settings/payment.component.ts @@ -153,7 +153,9 @@ export class PaymentComponent implements OnInit { createPaymentToken(): Promise<[string, PaymentMethodType]> { return new Promise((resolve, reject) => { - if (this.method === PaymentMethodType.PayPal) { + if (this.method === PaymentMethodType.Credit) { + resolve([null, this.method]); + } else if (this.method === PaymentMethodType.PayPal) { this.btInstance.requestPaymentMethod().then((payload: any) => { resolve([payload.nonce, this.method]); }).catch((err: any) => {