1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +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

@@ -39,8 +39,9 @@ export class AdjustPaymentComponent {
async submit() {
try {
const request = new PaymentRequest();
this.formPromise = this.paymentComponent.createPaymentToken().then((token) => {
request.paymentToken = token;
this.formPromise = this.paymentComponent.createPaymentToken().then((result) => {
request.paymentToken = result[0];
request.paymentMethodType = result[1];
if (this.organizationId == null) {
return this.apiService.postAccountPayment(request);
} else {