You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ Congratulations! You are now integrated with Wallee.
47
47
48
48
## Installation, Usage and Configuration
49
49
50
-
Installation, Usage and Configuration is explained in Wallee's [online documentation](https://plugin-documentation.wallee.com/wallee-payment/salesforce-commerce-cloud/1.0.14/docs/en/documentation.html).
50
+
Installation, Usage and Configuration is explained in Wallee's [online documentation](https://plugin-documentation.wallee.com/wallee-payment/salesforce-commerce-cloud/1.0.15/docs/en/documentation.html).
The {{infoName}} TypeScript library wraps around the {{infoName}} API. This library facilitates your interaction with various services such as transactions, accounts, and subscriptions.
4
+
5
+
6
+
## Documentation
7
+
8
+
[{{infoName}} Web Service API]({{endpointBaseUrl}}doc/api/web-service)
9
+
10
+
## Requirements
11
+
12
+
- npm 6+
13
+
14
+
## Installation
15
+
16
+
## NPM install (recommended)
17
+
```sh
18
+
npm install {{npmName}}
19
+
```
20
+
21
+
## Usage
22
+
The library needs to be configured with your account's space id, user id, and secret key which are available in your [{{infoName}}
23
+
account dashboard]({{endpointBaseUrl}}account/select). Set `space_id`, `user_id`, and `api_secret` to their values.
24
+
25
+
### Configuring a Service
26
+
27
+
```typescript
28
+
'use strict';
29
+
import { {{packageName}} } from '{{npmName}}';
30
+
31
+
let macVersion: number = 1;
32
+
let spaceId: number = {{testSpaceId}};
33
+
let userId: number = {{testUserId}};
34
+
let apiSecret: string = '{{{testApiSecret}}}';
35
+
36
+
let config = {
37
+
mac_version: macVersion,
38
+
space_id: spaceId,
39
+
user_id: userId,
40
+
api_secret: apiSecret
41
+
}
42
+
43
+
// Transaction Service
44
+
let transactionService: {{packageName}}.api.TransactionService = new {{packageName}}.api.TransactionService(config);
45
+
46
+
```
47
+
48
+
To get started with sending transactions, please review the example below:
49
+
50
+
```typescript
51
+
'use strict';
52
+
import { {{packageName}} } from '{{npmName}}';
53
+
54
+
let macVersion: number = 1;
55
+
let spaceId: number = {{testSpaceId}};
56
+
let userId: number = {{testUserId}};
57
+
let apiSecret: string = '{{{testApiSecret}}}';
58
+
59
+
let config = {
60
+
mac_version: macVersion,
61
+
space_id: spaceId,
62
+
user_id: userId,
63
+
api_secret: apiSecret
64
+
}
65
+
66
+
// Transaction Service
67
+
let transactionService: {{packageName}}.api.TransactionService = new {{packageName}}.api.TransactionService(config);
68
+
69
+
// TransactionPaymentPage Service
70
+
let transactionPaymentPageService: {{packageName}}.api.TransactionPaymentPageService = new {{packageName}}.api.TransactionPaymentPageService(config);
71
+
72
+
// LineItem of type PRODUCT
73
+
let lineItem: {{packageName}}.model.LineItemCreate = new {{packageName}}.model.LineItemCreate();
0 commit comments