Skip to content

Commit

Permalink
Open new tab to setup payment on dev
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhjtan committed Nov 26, 2024
1 parent 42fcc16 commit 848bef9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/host/app/components/matrix/payment-setup.gts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { on } from '@ember/modifier';
import { action } from '@ember/object';
import { service } from '@ember/service';

import ENV from '@cardstack/host/config/environment';

import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';

Expand All @@ -24,6 +26,8 @@ import {
Lock,
} from '@cardstack/boxel-ui/icons';

const { environment } = ENV;

import ProfileSettingsModal from '@cardstack/host/components/operator-mode/profile/profile-settings-modal';
import ProfileInfoPopover from '@cardstack/host/components/operator-mode/profile-info-popover';
import type BillingService from '@cardstack/host/services/billing-service';
Expand Down Expand Up @@ -124,6 +128,7 @@ export default class PaymentSetup extends Component<Signature> {
@href={{this.stripePaymentLink}}
data-test-setup-payment
class='setup-button'
target={{if (eq environment 'development') '_blank' '_self'}}
>
Set up Secure Payment Method
<span class='lock-icon'><Lock
Expand Down

0 comments on commit 848bef9

Please sign in to comment.