@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.
- package/README.md +43 -0
- package/adapter.html.js +136 -0
- package/adapter.js +377 -0
- package/adapter.utils.js +76 -0
- package/index.js +1 -0
- package/package.json +34 -0
- package/tests/storage.test.js +11 -0
- package/tsconfig.json +14 -0
- package/types.checkout_orders_v2.d.ts +6960 -0
- package/types.private.d.ts +6 -0
- package/types.public.d.ts +33 -0
@@ -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
|
+
|