Browse Source

Added region custom field to paypal add credits (#5895)

pull/5896/head
Conner Turnbull 2 years ago committed by GitHub
parent
commit
d874573a32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      apps/web/src/app/billing/settings/add-credit.component.ts

3
apps/web/src/app/billing/settings/add-credit.component.ts

@ -43,6 +43,7 @@ export class AddCreditComponent implements OnInit { @@ -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 { @@ -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;
}

Loading…
Cancel
Save