@storecraft/payments-paypal 1.0.0

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.
@@ -0,0 +1,6 @@
1
+
2
+ import type { components } from './types.checkout_orders_v2.js'
3
+
4
+ export type paypal_order_request = components["schemas"]["order_request"];
5
+ export type paypal_order_authorize_response = components["schemas"]["order_authorize_response"];
6
+ export type paypal_order = components["schemas"]["order"];
@@ -0,0 +1,33 @@
1
+ export * from './index.js';
2
+
3
+ /**
4
+ * @description gateway config
5
+ */
6
+ export type Config = {
7
+ /**
8
+ * @description default currency code
9
+ */
10
+ default_currency_code?: string;
11
+
12
+ /**
13
+ * @description the environment
14
+ */
15
+ env: 'prod' | 'test';
16
+
17
+ /**
18
+ * @description private client id
19
+ */
20
+ client_id: string;
21
+
22
+ /**
23
+ * @description private secret
24
+ */
25
+ secret: string;
26
+
27
+ /**
28
+ * @description default intent to `authorize` or `capture` on order creation
29
+ */
30
+ intent_on_checkout?: 'AUTHORIZE' | 'CAPTURE';
31
+ }
32
+
33
+