mirror of
https://github.com/bitwarden/browser
synced 2025-01-28 03:59:50 +01:00
Added region custom field to paypal add credits (#5895)
This commit is contained in:
parent
9c1247afa3
commit
d874573a32
@ -43,6 +43,7 @@ export class AddCreditComponent implements OnInit {
|
|||||||
private userId: string;
|
private userId: string;
|
||||||
private name: string;
|
private name: string;
|
||||||
private email: string;
|
private email: string;
|
||||||
|
private region: string;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private stateService: StateService,
|
private stateService: StateService,
|
||||||
@ -76,7 +77,9 @@ export class AddCreditComponent implements OnInit {
|
|||||||
this.email = this.subject;
|
this.email = this.subject;
|
||||||
this.ppButtonCustomField = "user_id:" + this.userId;
|
this.ppButtonCustomField = "user_id:" + this.userId;
|
||||||
}
|
}
|
||||||
|
this.region = await this.stateService.getRegion();
|
||||||
this.ppButtonCustomField += ",account_credit:1";
|
this.ppButtonCustomField += ",account_credit:1";
|
||||||
|
this.ppButtonCustomField += `,region:${this.region}`;
|
||||||
this.returnUrl = window.location.href;
|
this.returnUrl = window.location.href;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user