From d874573a320c30ae327e34d387456bc996983267 Mon Sep 17 00:00:00 2001 From: Conner Turnbull <133619638+cturnbull-bitwarden@users.noreply.github.com> Date: Tue, 25 Jul 2023 13:39:09 -0400 Subject: [PATCH] Added region custom field to paypal add credits (#5895) --- apps/web/src/app/billing/settings/add-credit.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/src/app/billing/settings/add-credit.component.ts b/apps/web/src/app/billing/settings/add-credit.component.ts index d679f02758..031d25e9fe 100644 --- a/apps/web/src/app/billing/settings/add-credit.component.ts +++ b/apps/web/src/app/billing/settings/add-credit.component.ts @@ -43,6 +43,7 @@ export class AddCreditComponent implements OnInit { private userId: string; private name: string; private email: string; + private region: string; constructor( private stateService: StateService, @@ -76,7 +77,9 @@ export class AddCreditComponent implements OnInit { this.email = this.subject; this.ppButtonCustomField = "user_id:" + this.userId; } + this.region = await this.stateService.getRegion(); this.ppButtonCustomField += ",account_credit:1"; + this.ppButtonCustomField += `,region:${this.region}`; this.returnUrl = window.location.href; }