@sbc-connect/nuxt-pay 0.1.2 → 0.1.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @sbc-connect/nuxt-pay
2
2
 
3
+ ## 0.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`9b8c225`](https://github.com/bcgov/connect-nuxt/commit/9b8c225a011e3c89c9b490e93a554f55a4e29b78)]:
8
+ - @sbc-connect/nuxt-auth@0.1.4
9
+
10
+ ## 0.1.3
11
+
12
+ ### Patch Changes
13
+
14
+ - [#9](https://github.com/bcgov/connect-nuxt/pull/9) [`e841fde`](https://github.com/bcgov/connect-nuxt/commit/e841fde27630d63efb2c152cd78d92b1193d1d5e) Thanks [@kialj876](https://github.com/kialj876)! - Add Nuxt back as a dev dependency
15
+
16
+ - [#8](https://github.com/bcgov/connect-nuxt/pull/8) [`c85ebfc`](https://github.com/bcgov/connect-nuxt/commit/c85ebfc879e19cce307b109c9d38044f71f482d2) Thanks [@kialj876](https://github.com/kialj876)! - Added in i18n, added base header components, added in styles for nuxt ui
17
+
18
+ - Updated dependencies [[`e841fde`](https://github.com/bcgov/connect-nuxt/commit/e841fde27630d63efb2c152cd78d92b1193d1d5e), [`c85ebfc`](https://github.com/bcgov/connect-nuxt/commit/c85ebfc879e19cce307b109c9d38044f71f482d2)]:
19
+ - @sbc-connect/nuxt-auth@0.1.3
20
+
3
21
  ## 0.1.2
4
22
 
5
23
  ### Patch Changes
package/README.md CHANGED
@@ -1,73 +1,63 @@
1
- # Nuxt Layer Starter
1
+ # @sbc-connect/nuxt-pay
2
+ A Nuxt layer for handling fee calculation and payment processing within the Connect ecosystem.
2
3
 
3
- Create Nuxt extendable layer with this GitHub template.
4
+ This package provides the necessary components, composables, and service integrations to use the Connect payment flow, offering a standardized payment experience for all applications.
4
5
 
5
- ## Setup
6
+ ## Features
6
7
 
7
- Make sure to install the dependencies:
8
+ ### Payment Integration
9
+ - Utilities for fetching fees by payment code.
10
+ - Components for displaying fee summaries and handling payment actions.
8
11
 
9
- ```bash
10
- pnpm install
11
- ```
12
-
13
- ## Working on your layer
14
-
15
- Your layer is at the root of this repository, it is exactly like a regular Nuxt project, except you can publish it on NPM.
16
-
17
- The `.playground` directory should help you on trying your layer during development.
18
12
 
19
- Running `pnpm dev` will prepare and boot `.playground` directory, which imports your layer itself.
13
+ ### Core Development Assets
14
+ - useConnectFeeStore() Pinia store for managing filing fees and payment status.
15
+ - Composables for interacting with the payment API.
16
+ - Pre-configured for handling different payment methods (Credit Card, PAD, etc.).
20
17
 
21
- ## Distributing your layer
18
+ For detailed usage and documentation, please see the [Pay Layer Docs](../../../docs/packages/layers/pay/intro.md).
22
19
 
23
- Your Nuxt layer is shaped exactly the same as any other Nuxt project, except you can publish it on NPM.
20
+ ## Usage
24
21
 
25
- To do so, you only have to check if `files` in `package.json` are valid, then run:
22
+ ### Install
26
23
 
27
24
  ```bash
28
- npm publish --access public
25
+ pnpm install @sbc-connect/nuxt-pay
29
26
  ```
30
27
 
31
- Once done, your users will only have to run:
28
+ ### Configure
29
+ Then add the dependency to `extends` in `nuxt.config`:
32
30
 
33
- ```bash
34
- npm install --save your-layer
35
- ```
36
-
37
- Then add the dependency to their `extends` in `nuxt.config`:
31
+ > [!NOTE]
32
+ > `@sbc-connect/nuxt-pay` already includes `@sbc-connect/nuxt-auth`, it is not necessary to install `@sbc-connect/nuxt-auth`.
38
33
 
39
34
  ```ts
40
35
  defineNuxtConfig({
41
- extends: 'your-layer'
36
+ extends: '@sbc-connect/nuxt-pay'
42
37
  })
43
38
  ```
44
39
 
45
- ## Development Server
40
+ ## Environment Variables
41
+ This project requires certain environment variables to be set to run correctly.
46
42
 
47
- Start the development server on http://localhost:3000
43
+ Create a file named .env in the root of the project.
48
44
 
49
- ```bash
50
- pnpm dev
51
- ```
52
-
53
- ## Production
45
+ Copy the contents of the .env.example file into your new .env file.
54
46
 
55
- Build the application for production:
47
+ ### Local Development
48
+ For local development, you will need credentials for the interacting with the Pay services.
56
49
 
57
- ```bash
58
- pnpm build
59
50
  ```
60
-
61
- Or statically generate it with:
62
-
63
- ```bash
64
- pnpm generate
51
+ # .env
52
+ NUXT_PUBLIC_PAY_API_URL="https://pay-api-dev.pathfinder.gov.bc.ca/api/v1"
53
+ NUXT_PUBLIC_PAY_API_KEY="your-dev-api-key"
65
54
  ```
66
55
 
67
- Locally preview production build:
56
+ ### Production Environments
57
+ > [!IMPORTANT]
58
+ > The values for staging and production environments are managed securely and should not be stored in this file.
68
59
 
69
- ```bash
70
- pnpm preview
71
- ```
60
+ To obtain the correct values for a production build or deployment, please contact the Connect Platform Team.
72
61
 
73
- Checkout the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
62
+ ## Contributing
63
+ We welcome contributions to this package! Please see the main [suspicious link removed] for information on our branching strategy, commit conventions, and pull request process.
@@ -2,8 +2,8 @@
2
2
  <div class="bg-midnightBlue-300 p-5 mt-5">
3
3
  Pay - should have bg-midnightBlue-300
4
4
  <HelloWorldAuth />
5
- <p class="text-bcGovColor-activeBlue">
6
- Pay - Should be bcGovColor-activeBlue
5
+ <p class="text-connect-primary">
6
+ Pay - Should be connect-primary
7
7
  </p>
8
8
  </div>
9
9
  </template>
package/package.json CHANGED
@@ -1,24 +1,23 @@
1
1
  {
2
2
  "name": "@sbc-connect/nuxt-pay",
3
3
  "type": "module",
4
- "version": "0.1.2",
4
+ "version": "0.1.4",
5
5
  "repository": "github:bcgov/connect-nuxt",
6
+ "license": "BSD-3-Clause",
6
7
  "main": "./nuxt.config.ts",
7
8
  "devDependencies": {
8
9
  "@axe-core/playwright": "^4.10.2",
9
- "@nuxtjs/i18n": "^9.5.5",
10
- "@vitest/coverage-v8": "^3.2.3",
10
+ "@vitest/coverage-v8": "^3.2.4",
11
11
  "dotenv": "^17.2.0",
12
12
  "nuxt": "4.0.0",
13
13
  "typescript": "^5.8.3",
14
- "vue": "latest",
15
- "vue-tsc": "^3.0.2",
16
- "@sbc-connect/eslint-config": "0.0.3",
17
- "@sbc-connect/playwright-config": "0.0.3",
18
- "@sbc-connect/vitest-config": "0.0.3"
14
+ "vue-tsc": "^3.0.3",
15
+ "@sbc-connect/eslint-config": "0.0.5",
16
+ "@sbc-connect/playwright-config": "0.0.4",
17
+ "@sbc-connect/vitest-config": "0.0.5"
19
18
  },
20
19
  "dependencies": {
21
- "@sbc-connect/nuxt-auth": "0.1.2"
20
+ "@sbc-connect/nuxt-auth": "0.1.4"
22
21
  },
23
22
  "scripts": {
24
23
  "preinstall": "npx only-allow pnpm",
package/eslint.config.ts DELETED
@@ -1,3 +0,0 @@
1
- import eslintConfig from '@sbc-connect/eslint-config'
2
-
3
- export default eslintConfig