Skip to content

Commit f448122

Browse files
committed
add plan id
1 parent b022985 commit f448122

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

projects/fusio-sdk/src/lib/component/#/#.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h1 class="card-title #-card-title">{{product.price|currency:paymentCurren
2020
<li *ngFor="let feature of product.features">{{feature}}</li>
2121
</ul>
2222
<button *ngIf="!isAuthenticated" type="button" routerLink="/register" class="w-100 btn btn-lg btn-primary">Register</button>
23-
<button *ngIf="isAuthenticated" type="button" (click)="doPurchase(1)" class="w-100 btn btn-lg btn-primary">Purchase</button>
23+
<button *ngIf="isAuthenticated" type="button" (click)="doPurchase(product.planId)" class="w-100 btn btn-lg btn-primary">Purchase</button>
2424
</div>
2525
</div>
2626
</div>

projects/fusio-sdk/src/lib/config/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ export interface #Config {
123123
}
124124

125125
export interface Product {
126+
planId: number,
126127
title: string,
127128
price: number,
128129
features: Array<string>,

0 commit comments

Comments
 (0)