1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 10:43:35 +00:00

tax info collection zip + VAT

This commit is contained in:
Chad Scharf
2020-06-08 17:24:05 -04:00
parent 4309064804
commit b1c098614c
8 changed files with 675 additions and 10 deletions

View File

@@ -166,7 +166,7 @@ export class PaymentComponent implements OnInit {
} else if (this.method === PaymentMethodType.Card || this.method === PaymentMethodType.BankAccount) {
if (this.method === PaymentMethodType.Card) {
this.apiService.postSetupPayment().then((clientSecret) =>
this.stripe.handleCardSetup(clientSecret, this.stripeCardNumberElement))
this.stripe.confirmCardSetup(clientSecret, this.stripeCardNumberElement))
.then((result: any) => {
if (result.error) {
reject(result.error.message);
@@ -198,8 +198,8 @@ export class PaymentComponent implements OnInit {
return;
}
const handleCardPayment = () => this.showMethods ?
this.stripe.handleCardPayment(clientSecret, this.stripeCardNumberElement) :
this.stripe.handleCardPayment(clientSecret);
this.stripe.confirmCardPayment(clientSecret, this.stripeCardNumberElement) :
this.stripe.confirmCardPayment(clientSecret);
return handleCardPayment().then(async (result: any) => {
if (result.error) {
reject(result.error.message);