Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,505 changes: 1,351 additions & 1,154 deletions examples/angular/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@angular/platform-browser": "^15.0.2",
"@angular/platform-browser-dynamic": "^15.2.9",
"@angular/router": "^15.2.9",
"@google-pay/button-angular": "^3.1.0",
"@google-pay/button-angular": "^3.2.0",
"@types/googlepay": "^0.7.0",
"rxjs": "~6.6.3",
"tslib": "^2.6.1",
Expand Down
13 changes: 13 additions & 0 deletions examples/angular/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@
<option value="uk">Ukrainian</option>
</select>
</label>
<label>
<span>Button border type:</span>
<select [(ngModel)]="buttonBorderType">
<option value="no_border">no_border</option>
<option value="default_border" selected>default_border</option>
</select>
</label>
</div>

<div class="examples">
Expand All @@ -103,6 +110,7 @@
[buttonColor]="buttonColor"
[buttonRadius]="buttonRadius"
[buttonLocale]="buttonLocale"
[buttonBorderType]="buttonBorderType"
[existingPaymentMethodRequired]="existingPaymentMethodRequired"
[paymentRequest]="{
apiVersion: paymentRequest.apiVersion,
Expand Down Expand Up @@ -131,6 +139,7 @@
[buttonColor]="buttonColor"
[buttonRadius]="buttonRadius"
[buttonLocale]="buttonLocale"
[buttonBorderType]="buttonBorderType"
[existingPaymentMethodRequired]="existingPaymentMethodRequired"
[paymentRequest]="{
apiVersion: paymentRequest.apiVersion,
Expand Down Expand Up @@ -161,6 +170,7 @@
[buttonColor]="buttonColor"
[buttonRadius]="buttonRadius"
[buttonLocale]="buttonLocale"
[buttonBorderType]="buttonBorderType"
[existingPaymentMethodRequired]="existingPaymentMethodRequired"
[paymentRequest]="{
apiVersion: paymentRequest.apiVersion,
Expand Down Expand Up @@ -206,6 +216,7 @@
[buttonColor]="buttonColor"
[buttonRadius]="buttonRadius"
[buttonLocale]="buttonLocale"
[buttonBorderType]="buttonBorderType"
[existingPaymentMethodRequired]="existingPaymentMethodRequired"
[paymentRequest]="{
apiVersion: paymentRequest.apiVersion,
Expand Down Expand Up @@ -239,6 +250,7 @@
[buttonColor]="buttonColor"
[buttonRadius]="buttonRadius"
[buttonLocale]="buttonLocale"
[buttonBorderType]="buttonBorderType"
[existingPaymentMethodRequired]="existingPaymentMethodRequired"
[paymentRequest]="{
apiVersion: paymentRequest.apiVersion,
Expand All @@ -263,6 +275,7 @@
[buttonColor]="buttonColor"
[buttonRadius]="buttonRadius"
[buttonLocale]="buttonLocale"
[buttonBorderType]="buttonBorderType"
[existingPaymentMethodRequired]="existingPaymentMethodRequired"
[paymentRequest]="{
apiVersion: paymentRequest.apiVersion,
Expand Down
1 change: 1 addition & 0 deletions examples/angular/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export class AppComponent {
buttonColor = 'default';
buttonRadius = 4;
buttonLocale = '';
buttonBorderType = 'default_border';
existingPaymentMethodRequired = false;

paymentRequest = {
Expand Down
9 changes: 9 additions & 0 deletions examples/html/dynamic-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const controls = {
buttonType: new ControlAccessor('button-type'),
buttonRadius: new ControlAccessor('button-radius'),
buttonLocale: new ControlAccessor('button-locale'),
buttonBorderType: new ControlAccessor('button-border-type'),
};

const defaultPaymentRequest = {
Expand Down Expand Up @@ -98,6 +99,7 @@ const googlePayButtons = [
buttonType: controls.buttonType.value,
buttonRadius: controls.buttonRadius.value,
buttonLocale: controls.buttonLocale.value,
buttonBorderType: controls.buttonBorderType.value,
paymentRequest: {
...defaultPaymentRequest,
transactionInfo: {
Expand All @@ -118,6 +120,7 @@ const googlePayButtons = [
buttonType: controls.buttonType.value,
buttonRadius: controls.buttonRadius.value,
buttonLocale: controls.buttonLocale.value,
buttonBorderType: controls.buttonBorderType.value,
paymentRequest: {
...defaultPaymentRequest,
allowedPaymentMethods: [
Expand Down Expand Up @@ -156,6 +159,7 @@ const googlePayButtons = [
buttonType: controls.buttonType.value,
buttonRadius: controls.buttonRadius.value,
buttonLocale: controls.buttonLocale.value,
buttonBorderType: controls.buttonBorderType.value,
paymentRequest: {
...defaultPaymentRequest,
transactionInfo: {
Expand All @@ -178,6 +182,7 @@ const googlePayButtons = [
buttonType: controls.buttonType.value,
buttonRadius: controls.buttonRadius.value,
buttonLocale: controls.buttonLocale.value,
buttonBorderType: controls.buttonBorderType.value,
paymentRequest: {
...defaultPaymentRequest,
transactionInfo: {
Expand All @@ -201,6 +206,7 @@ const googlePayButtons = [
buttonType: controls.buttonType.value,
buttonRadius: controls.buttonRadius.value,
buttonLocale: controls.buttonLocale.value,
buttonBorderType: controls.buttonBorderType.value,
paymentRequest: {
...defaultPaymentRequest,
transactionInfo: {
Expand Down Expand Up @@ -254,6 +260,7 @@ const googlePayButtons = [
buttonType: controls.buttonType.value,
buttonRadius: controls.buttonRadius.value,
buttonLocale: controls.buttonLocale.value,
buttonBorderType: controls.buttonBorderType.value,
buttonSizeMode: 'fill',
paymentRequest: {
...defaultPaymentRequest,
Expand All @@ -275,6 +282,7 @@ const googlePayButtons = [
buttonType: controls.buttonType.value,
buttonRadius: controls.buttonRadius.value,
buttonLocale: controls.buttonLocale.value,
buttonBorderType: controls.buttonBorderType.value,
paymentRequest: {
...defaultPaymentRequest,
transactionInfo: {
Expand All @@ -298,6 +306,7 @@ const googlePayButtons = [
buttonType: controls.buttonType.value,
buttonRadius: controls.buttonRadius.value,
buttonLocale: controls.buttonLocale.value,
buttonBorderType: controls.buttonBorderType.value,
paymentRequest: {
...defaultPaymentRequest,
transactionInfo: {
Expand Down
7 changes: 7 additions & 0 deletions examples/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@
<option value="uk">Ukrainian</option>
</select>
</label>
<label>
<span>Button border type:</span>
<select id="button-border-type">
<option value="no_border">no_border</option>
<option value="default_border" selected>default_border</option>
</select>
</label>
</div>

<div id="examples" class="examples">
Expand Down
12 changes: 6 additions & 6 deletions examples/html/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading