@ng-web-apis/payment-request
Advanced tools
Comparing version 3.0.5 to 3.0.6
{ | ||
"name": "@ng-web-apis/payment-request", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"description": "This is a library for declarative use of Payment Request API with Angular", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -48,7 +48,20 @@ # ![ng-web-apis logo](https://raw.githubusercontent.com/taiga-family/ng-web-apis/main/libs/payment-request/logo.svg) Payment Request API for Angular | ||
```html | ||
<div waPayment [paymentTotal]="total"> | ||
<div *ngFor="let item of items" waPaymentItem [paymentLabel]="item.label" [paymentAmount]="item.amount"> | ||
<div | ||
waPayment | ||
[paymentTotal]="total" | ||
> | ||
<div | ||
*ngFor="let item of items" | ||
waPaymentItem | ||
[paymentLabel]="item.label" | ||
[paymentAmount]="item.amount" | ||
> | ||
{{item.label}} ({{item.amount}}) | ||
</div> | ||
<button (waPaymentSubmit)="onPaymentSubmit($event)" (waPaymentError)="onPaymentError($event)">Buy</button> | ||
<button | ||
(waPaymentSubmit)="onPaymentSubmit($event)" | ||
(waPaymentError)="onPaymentError($event)" | ||
> | ||
Buy | ||
</button> | ||
</div> | ||
@@ -84,3 +97,8 @@ ``` | ||
```html | ||
<any-element waPayment [paymentTotal]="total">...</any-element> | ||
<any-element | ||
waPayment | ||
[paymentTotal]="total" | ||
> | ||
... | ||
</any-element> | ||
``` | ||
@@ -115,4 +133,12 @@ | ||
```html | ||
<any-element waPayment [paymentTotal]="total"> | ||
<any-element *ngFor="let item of items" waPaymentItem [paymentLabel]="item.label" [paymentAmount]="item.amount"> | ||
<any-element | ||
waPayment | ||
[paymentTotal]="total" | ||
> | ||
<any-element | ||
*ngFor="let item of items" | ||
waPaymentItem | ||
[paymentLabel]="item.label" | ||
[paymentAmount]="item.amount" | ||
> | ||
{{item.label}} | ||
@@ -145,5 +171,13 @@ </any-element> | ||
```html | ||
<any-element waPayment [paymentTotal]="total"> | ||
<any-element | ||
waPayment | ||
[paymentTotal]="total" | ||
> | ||
... | ||
<button (waPaymentSubmit)="onPayment($event)" (waPaymentError)="onPaymentError($event)">Buy</button> | ||
<button | ||
(waPaymentSubmit)="onPayment($event)" | ||
(waPaymentError)="onPaymentError($event)" | ||
> | ||
Buy | ||
</button> | ||
</any-element> | ||
@@ -150,0 +184,0 @@ ``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
105740
257