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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user