1
0
mirror of https://github.com/bitwarden/web synced 2025-12-18 09:13:17 +00:00

pass payment method type

This commit is contained in:
Kyle Spearrin
2019-02-19 17:06:01 -05:00
parent 0b1abc9ab0
commit 4fc90984d8
5 changed files with 17 additions and 10 deletions

View File

@@ -128,7 +128,7 @@ export class CreateOrganizationComponent implements OnInit {
} else {
return this.paymentComponent.createPaymentToken();
}
}).then((token: string) => {
}).then((tokenResult) => {
if (this.selfHosted) {
const fd = new FormData();
fd.append('license', files[0]);
@@ -145,7 +145,8 @@ export class CreateOrganizationComponent implements OnInit {
if (this.plan === 'free') {
request.planType = PlanType.Free;
} else {
request.paymentToken = token;
request.paymentToken = tokenResult[0];
request.paymentMethodType = tokenResult[1];
request.businessName = this.ownedBusiness ? this.businessName : null;
request.additionalSeats = this.additionalSeats;
request.additionalStorageGb = this.additionalStorage;