@evoke-platform/payment 1.0.0-dev.4 → 1.0.0-dev.40
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/dist/payment.d.ts +2 -2
- package/dist/paymentGateway.d.ts +3 -0
- package/package.json +7 -3
package/dist/payment.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface PaymentItem {
|
|
|
33
33
|
export interface Payment {
|
|
34
34
|
id: string;
|
|
35
35
|
/**
|
|
36
|
-
* Payment number
|
|
36
|
+
* Payment number associated with the transaction.
|
|
37
37
|
*/
|
|
38
38
|
name: string;
|
|
39
39
|
/**
|
|
@@ -57,7 +57,7 @@ export interface Payment {
|
|
|
57
57
|
*/
|
|
58
58
|
feeTotal?: number;
|
|
59
59
|
paymentItems?: PaymentItem[];
|
|
60
|
-
appId
|
|
60
|
+
appId?: string;
|
|
61
61
|
successPage?: string;
|
|
62
62
|
cancelPage?: string;
|
|
63
63
|
customField1?: string;
|
package/dist/paymentGateway.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Request, Response } from 'express';
|
|
1
2
|
import { Payment } from './payment';
|
|
2
3
|
export interface ParsedQueryString {
|
|
3
4
|
[key: string]: undefined | string | string[] | ParsedQueryString | ParsedQueryString[];
|
|
@@ -7,7 +8,9 @@ export interface TransferData {
|
|
|
7
8
|
url: string;
|
|
8
9
|
parameters: Record<string, string>;
|
|
9
10
|
}
|
|
11
|
+
export type { Request, Response } from 'express';
|
|
10
12
|
export interface PaymentGateway {
|
|
11
13
|
prepare(payment: Payment, returnUrl: string): TransferData | PromiseLike<TransferData>;
|
|
12
14
|
postPaymentResult(payment: Payment, resultData: ParsedQueryString): Payment | null | PromiseLike<Payment | null>;
|
|
15
|
+
receivePaymentNotification?(request: Request, response: Response): Payment | null | PromiseLike<Payment | null>;
|
|
13
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evoke-platform/payment",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.40",
|
|
4
4
|
"description": "Support for payment gateway integrations in Evoke",
|
|
5
5
|
"homepage": "https://github.com/Evoke-Platform/evoke-sdk/blob/main/packages/payment/README.md",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,11 @@
|
|
|
28
28
|
"author": "System Automation Corp.",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"
|
|
32
|
-
"
|
|
31
|
+
"@types/express": "^4.17.21",
|
|
32
|
+
"commit-and-tag-version": "^12.1.0",
|
|
33
|
+
"typescript": "^5.3.3"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"express": "^4.18.2"
|
|
33
37
|
}
|
|
34
38
|
}
|