@akinon/pz-gpay 1.42.0-rc.1 → 1.42.0-rc.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/package.json +1 -1
  3. package/readme.md +26 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @akinon/pz-gpay
2
2
 
3
+ ## 1.42.0-rc.11
4
+
5
+ ## 1.42.0-rc.10
6
+
7
+ ## 1.42.0-rc.9
8
+
9
+ ## 1.42.0-rc.8
10
+
11
+ ## 1.42.0-rc.7
12
+
13
+ ### Minor Changes
14
+
15
+ - 50b9069: ZERO-2767: update plugin readme files
16
+
17
+ ## 1.42.0-rc.6
18
+
19
+ ## 1.42.0-rc.5
20
+
21
+ ## 1.42.0-rc.4
22
+
23
+ ## 1.42.0-rc.3
24
+
25
+ ## 1.42.0-rc.2
26
+
3
27
  ## 1.42.0-rc.1
4
28
 
5
29
  ## 1.42.0-rc.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/pz-gpay",
3
- "version": "1.42.0-rc.1",
3
+ "version": "1.42.0-rc.11",
4
4
  "license": "MIT",
5
5
  "main": "src/index.tsx",
6
6
  "peerDependencies": {
package/readme.md CHANGED
@@ -1,24 +1,39 @@
1
- # pz-gpay
1
+ # @akinon/pz-gpay
2
+
3
+ ### Install the npm package
4
+
5
+ ```bash
6
+ # For latest version
7
+ yarn add @akinon/pz-gpay
8
+
9
+ # Preferred installation method
10
+ npx @akinon/projectzero@latest --plugins
11
+ ```
2
12
 
3
13
  ### Example Usage
4
14
  ##### File Path: src/views/checkout/steps/payment/options/gpay.tsx
5
15
 
6
16
  ```javascript
7
- import { GPayOption } from '@akinon/pz-gpay';
17
+ import PluginModule, { Component } from '@akinon/next/components/plugin-module';
8
18
 
9
- export default function GPay() {
19
+ const GPay = () => {
10
20
  return (
11
- <GPayOption
12
- translations={{
13
- title: 'Pay with GarantiPay',
14
- description:
15
- 'Click the button below to pay for your order using GarantiPay.',
16
- button: 'Pay Now'
21
+ <PluginModule
22
+ component={Component.GPay}
23
+ props={{
24
+ translations: {
25
+ title: 'Pay with GarantiPay',
26
+ description:
27
+ 'Click the button below to pay for your order using GarantiPay.',
28
+ button: 'Pay Now'
29
+ },
30
+ titleClassName: 'text-4xl'
17
31
  }}
18
- titleClassName="text-4xl"
19
32
  />
20
33
  );
21
- }
34
+ };
35
+
36
+ export default GPay;
22
37
  ```
23
38
 
24
39
  ##### File Path: src/app/[commerce]/[locale]/[currency]/orders/garanti-pay-redirect/page.tsx