@htmlbricks/hb-checkout 0.68.1 → 0.68.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/manifest.json CHANGED
@@ -449,6 +449,7 @@
449
449
  "examples": [
450
450
  {
451
451
  "name": "default",
452
+ "description": "Two shipping options and PayPal gateway.",
452
453
  "data": {
453
454
  "shipments": [
454
455
  {
@@ -483,9 +484,106 @@
483
484
  "type": "buy"
484
485
  }
485
486
  }
487
+ },
488
+ {
489
+ "name": "singleShipmentGoogle",
490
+ "description": "One delivery line and Google Pay as the only gateway.",
491
+ "data": {
492
+ "shipments": [
493
+ {
494
+ "price": 15,
495
+ "currency": "€",
496
+ "arriveDate": "2022-01-22T10:00:00.000Z",
497
+ "available": true,
498
+ "label": "Standard",
499
+ "id": "std"
500
+ }
501
+ ],
502
+ "gateways": [
503
+ {
504
+ "id": "google",
505
+ "label": "Google Pay"
506
+ }
507
+ ],
508
+ "payment": {
509
+ "merchantName": "testmerchant",
510
+ "countryCode": "it",
511
+ "currencyCode": "EUR",
512
+ "total": 45,
513
+ "type": "buy"
514
+ }
515
+ }
516
+ },
517
+ {
518
+ "name": "withBillingProfile",
519
+ "description": "Prefilled customer block for the embedded profile form.",
520
+ "data": {
521
+ "shipments": [
522
+ {
523
+ "price": 10,
524
+ "currency": "€",
525
+ "arriveDate": "2022-01-20T08:03:57.562Z",
526
+ "available": true,
527
+ "label": "zio barca",
528
+ "id": "ziobarca"
529
+ }
530
+ ],
531
+ "gateways": [
532
+ {
533
+ "id": "paypal",
534
+ "label": "bbbb",
535
+ "paypalid": "test"
536
+ }
537
+ ],
538
+ "payment": {
539
+ "merchantName": "testmerchant",
540
+ "countryCode": "it",
541
+ "currencyCode": "EUR",
542
+ "total": 45,
543
+ "type": "buy"
544
+ },
545
+ "user": {
546
+ "fullName": "Jane Example",
547
+ "addressWithNumber": "Via Roma 1",
548
+ "city": "Milan",
549
+ "zip": "20100",
550
+ "nationality": "IT"
551
+ }
552
+ }
553
+ },
554
+ {
555
+ "name": "completed",
556
+ "description": "Read-only confirmation state after a successful payment.",
557
+ "data": {
558
+ "shipments": [
559
+ {
560
+ "price": 10,
561
+ "currency": "€",
562
+ "arriveDate": "2022-01-20T08:03:57.562Z",
563
+ "available": true,
564
+ "label": "zio barca",
565
+ "id": "ziobarca"
566
+ }
567
+ ],
568
+ "gateways": [
569
+ {
570
+ "id": "paypal",
571
+ "label": "bbbb",
572
+ "paypalid": "test"
573
+ }
574
+ ],
575
+ "payment": {
576
+ "merchantName": "testmerchant",
577
+ "countryCode": "it",
578
+ "currencyCode": "EUR",
579
+ "total": 45,
580
+ "type": "buy"
581
+ },
582
+ "completed": "yes"
583
+ }
486
584
  }
487
585
  ],
488
- "iifeIntegrity": "sha384-wKkAqE0Bo24sLfQg3VlyJLvcjc0QSCYoX4mnHLGR9OxmCBbI23b8m9Ci0QmxikiI",
586
+ "iifeIntegrity": "sha384-jsVjKqEuOv5unUQlGkczuljqZN201V68KmnzzYOUfvT6T4MnJ0MshEPG3KN/3pdY",
489
587
  "dependencies": [
490
588
  {
491
589
  "name": "hb-form",
@@ -638,5 +736,5 @@
638
736
  "size": {},
639
737
  "iifePath": "main.iife.js",
640
738
  "repoName": "@htmlbricks/hb-checkout",
641
- "version": "0.68.1"
739
+ "version": "0.68.3"
642
740
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-checkout",
3
- "version": "0.68.1",
3
+ "version": "0.68.3",
4
4
  "contributors": [],
5
5
  "description": "End-to-end checkout flow: editable billing/shipping user profile (`hb-form`), shipment method choice, optional card form, Google Pay (`@google-pay/button-element`), and PayPal via `hb-payment-paypal` according to `gateways` and `payment` JSON. Parses string props into objects, merges card networks defaults, and tracks `completed` to switch between editable steps and a read-only confirmation summary with events for payment and form submissions.",
6
6
  "licenses": [