Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

test(postman): update event file format to latest supported (#2055)

Natarajan Keeee0ed5dc83
diff --git a/.github/workflows/postman-collection-runner.yml b/.github/workflows/postman-collection-runner.yml
index 316c989125..f9ef71bed9 100644
--- a/.github/workflows/postman-collection-runner.yml
+++ b/.github/workflows/postman-collection-runner.yml
@@ -117,7 +117,7 @@ jobs:
- name: Install newman from fork
run: |
- npm install -g 'git+ssh://[email protected]:knutties/newman.git#feature/newman-dir'
+ npm install -g 'git+ssh://[email protected]:knutties/newman.git#37708c1fbf6b36240ac796a42dc5a7b435990764'
- name: Run Tests
if: ${{ ((github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name)) || (github.event_name == 'merge_group')}}
diff --git a/postman/collection-dir/aci/.event.json b/postman/collection-dir/aci/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/aci/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/aci/.event.meta.json b/postman/collection-dir/aci/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/aci/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/aci/event.prerequest.js b/postman/collection-dir/aci/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/aci/event.test.js b/postman/collection-dir/aci/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/aci/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/adyen_uk/.event.json b/postman/collection-dir/adyen_uk/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/adyen_uk/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/adyen_uk/.event.meta.json b/postman/collection-dir/adyen_uk/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/adyen_uk/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/adyen_uk/event.prerequest.js b/postman/collection-dir/adyen_uk/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/adyen_uk/event.test.js b/postman/collection-dir/adyen_uk/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/adyen_uk/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/airwallex/.event.json b/postman/collection-dir/airwallex/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/airwallex/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/airwallex/.event.meta.json b/postman/collection-dir/airwallex/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/airwallex/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/airwallex/event.prerequest.js b/postman/collection-dir/airwallex/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/airwallex/event.test.js b/postman/collection-dir/airwallex/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/airwallex/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/authorizedotnet/.event.json b/postman/collection-dir/authorizedotnet/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/authorizedotnet/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/authorizedotnet/.event.meta.json b/postman/collection-dir/authorizedotnet/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/authorizedotnet/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/authorizedotnet/event.prerequest.js b/postman/collection-dir/authorizedotnet/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/authorizedotnet/event.test.js b/postman/collection-dir/authorizedotnet/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/authorizedotnet/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/bambora/.event.json b/postman/collection-dir/bambora/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/bambora/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/bambora/.event.meta.json b/postman/collection-dir/bambora/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/bambora/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/bambora/event.prerequest.js b/postman/collection-dir/bambora/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/bambora/event.test.js b/postman/collection-dir/bambora/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/bambora/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/bambora_3ds/.event.json b/postman/collection-dir/bambora_3ds/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/bambora_3ds/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/bambora_3ds/.event.meta.json b/postman/collection-dir/bambora_3ds/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/bambora_3ds/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/bambora_3ds/event.prerequest.js b/postman/collection-dir/bambora_3ds/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/bambora_3ds/event.test.js b/postman/collection-dir/bambora_3ds/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/bambora_3ds/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/bluesnap/.event.json b/postman/collection-dir/bluesnap/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/bluesnap/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/bluesnap/.event.meta.json b/postman/collection-dir/bluesnap/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/bluesnap/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/bluesnap/event.prerequest.js b/postman/collection-dir/bluesnap/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/bluesnap/event.test.js b/postman/collection-dir/bluesnap/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/bluesnap/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/braintree/.event.json b/postman/collection-dir/braintree/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/braintree/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/braintree/.event.meta.json b/postman/collection-dir/braintree/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/braintree/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/braintree/event.prerequest.js b/postman/collection-dir/braintree/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/braintree/event.test.js b/postman/collection-dir/braintree/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/braintree/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/checkout/.event.json b/postman/collection-dir/checkout/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/checkout/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/checkout/.event.meta.json b/postman/collection-dir/checkout/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/checkout/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/checkout/event.prerequest.js b/postman/collection-dir/checkout/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/checkout/event.test.js b/postman/collection-dir/checkout/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/checkout/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/forte/.event.json b/postman/collection-dir/forte/.event.json
deleted file mode 100644
index 761eacf8f3..0000000000
--- a/postman/collection-dir/forte/.event.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/forte/.event.meta.json b/postman/collection-dir/forte/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/forte/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/forte/event.prerequest.js b/postman/collection-dir/forte/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/forte/event.test.js b/postman/collection-dir/forte/event.test.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/globalpay/.event.json b/postman/collection-dir/globalpay/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/globalpay/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/globalpay/.event.meta.json b/postman/collection-dir/globalpay/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/globalpay/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/globalpay/event.prerequest.js b/postman/collection-dir/globalpay/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/globalpay/event.test.js b/postman/collection-dir/globalpay/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/globalpay/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/hyperswitch/.event.json b/postman/collection-dir/hyperswitch/.event.json
deleted file mode 100644
index 761eacf8f3..0000000000
--- a/postman/collection-dir/hyperswitch/.event.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/hyperswitch/.event.meta.json b/postman/collection-dir/hyperswitch/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/hyperswitch/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/hyperswitch/event.prerequest.js b/postman/collection-dir/hyperswitch/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/hyperswitch/event.test.js b/postman/collection-dir/hyperswitch/event.test.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/mollie/.event.json b/postman/collection-dir/mollie/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/mollie/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/mollie/.event.meta.json b/postman/collection-dir/mollie/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/mollie/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/mollie/event.prerequest.js b/postman/collection-dir/mollie/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/mollie/event.test.js b/postman/collection-dir/mollie/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/mollie/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/multisafepay/.event.json b/postman/collection-dir/multisafepay/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/multisafepay/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/multisafepay/.event.meta.json b/postman/collection-dir/multisafepay/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/multisafepay/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/multisafepay/event.prerequest.js b/postman/collection-dir/multisafepay/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/multisafepay/event.test.js b/postman/collection-dir/multisafepay/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/multisafepay/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/nexinets/.event.json b/postman/collection-dir/nexinets/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/nexinets/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/nexinets/.event.meta.json b/postman/collection-dir/nexinets/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/nexinets/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/nexinets/event.prerequest.js b/postman/collection-dir/nexinets/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/nexinets/event.test.js b/postman/collection-dir/nexinets/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/nexinets/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/nmi/.event.json b/postman/collection-dir/nmi/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/nmi/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/nmi/.event.meta.json b/postman/collection-dir/nmi/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/nmi/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/nmi/event.prerequest.js b/postman/collection-dir/nmi/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/nmi/event.test.js b/postman/collection-dir/nmi/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/nmi/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/payme/.event.json b/postman/collection-dir/payme/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/payme/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/payme/.event.meta.json b/postman/collection-dir/payme/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/payme/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/payme/event.prerequest.js b/postman/collection-dir/payme/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/payme/event.test.js b/postman/collection-dir/payme/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/payme/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/paypal/.event.json b/postman/collection-dir/paypal/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/paypal/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/paypal/.event.meta.json b/postman/collection-dir/paypal/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/paypal/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/paypal/event.prerequest.js b/postman/collection-dir/paypal/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/paypal/event.test.js b/postman/collection-dir/paypal/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/paypal/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/powertranz/.event.json b/postman/collection-dir/powertranz/.event.json
deleted file mode 100644
index 761eacf8f3..0000000000
--- a/postman/collection-dir/powertranz/.event.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/powertranz/.event.meta.json b/postman/collection-dir/powertranz/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/powertranz/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/powertranz/event.prerequest.js b/postman/collection-dir/powertranz/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/powertranz/event.test.js b/postman/collection-dir/powertranz/event.test.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/rapyd/.event.json b/postman/collection-dir/rapyd/.event.json
deleted file mode 100644
index 761eacf8f3..0000000000
--- a/postman/collection-dir/rapyd/.event.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/rapyd/.event.meta.json b/postman/collection-dir/rapyd/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/rapyd/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/rapyd/event.prerequest.js b/postman/collection-dir/rapyd/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/rapyd/event.test.js b/postman/collection-dir/rapyd/event.test.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/shift4/.event.json b/postman/collection-dir/shift4/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/shift4/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/shift4/.event.meta.json b/postman/collection-dir/shift4/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/shift4/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/shift4/event.prerequest.js b/postman/collection-dir/shift4/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/shift4/event.test.js b/postman/collection-dir/shift4/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/shift4/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/stripe/.event.json b/postman/collection-dir/stripe/.event.json
deleted file mode 100644
index f2f883112b..0000000000
--- a/postman/collection-dir/stripe/.event.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));",
- ""
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/stripe/.event.meta.json b/postman/collection-dir/stripe/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/stripe/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/stripe/event.prerequest.js b/postman/collection-dir/stripe/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/stripe/event.test.js b/postman/collection-dir/stripe/event.test.js
new file mode 100644
index 0000000000..f355582656
--- /dev/null
+++ b/postman/collection-dir/stripe/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
diff --git a/postman/collection-dir/trustpay/.event.json b/postman/collection-dir/trustpay/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/trustpay/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/trustpay/.event.meta.json b/postman/collection-dir/trustpay/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/trustpay/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/trustpay/event.prerequest.js b/postman/collection-dir/trustpay/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/trustpay/event.test.js b/postman/collection-dir/trustpay/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/trustpay/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/worldline/.event.json b/postman/collection-dir/worldline/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/worldline/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/worldline/.event.meta.json b/postman/collection-dir/worldline/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/worldline/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/worldline/event.prerequest.js b/postman/collection-dir/worldline/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/worldline/event.test.js b/postman/collection-dir/worldline/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/worldline/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file
diff --git a/postman/collection-dir/zen/.event.json b/postman/collection-dir/zen/.event.json
deleted file mode 100644
index b82d3de344..0000000000
--- a/postman/collection-dir/zen/.event.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- "// Set response object as internal variable",
- "let jsonData = {};",
- "try {jsonData = pm.response.json();}catch(e){}",
- "",
- "// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id",
- "if (jsonData?.payment_id) {",
- " pm.collectionVariables.set(\"payment_id\", jsonData.payment_id);",
- " console.log(\"[LOG]::payment_id - \" + jsonData.payment_id);",
- "}",
- "",
- "console.log(\"[LOG]::x-request-id - \" + pm.response.headers.get('x-request-id'));"
- ]
- }
- }
- ]
-}
diff --git a/postman/collection-dir/zen/.event.meta.json b/postman/collection-dir/zen/.event.meta.json
new file mode 100644
index 0000000000..2df9d47d93
--- /dev/null
+++ b/postman/collection-dir/zen/.event.meta.json
@@ -0,0 +1,6 @@
+{
+ "eventOrder": [
+ "event.prerequest.js",
+ "event.test.js"
+ ]
+}
diff --git a/postman/collection-dir/zen/event.prerequest.js b/postman/collection-dir/zen/event.prerequest.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/postman/collection-dir/zen/event.test.js b/postman/collection-dir/zen/event.test.js
new file mode 100644
index 0000000000..69037688f2
--- /dev/null
+++ b/postman/collection-dir/zen/event.test.js
@@ -0,0 +1,11 @@
+// Set response object as internal variable
+let jsonData = {};
+try {jsonData = pm.response.json();}catch(e){}
+
+// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id
+if (jsonData?.payment_id) {
+ pm.collectionVariables.set("payment_id", jsonData.payment_id);
+ console.log("[LOG]::payment_id - " + jsonData.payment_id);
+}
+
+console.log("[LOG]::x-request-id - " + pm.response.headers.get('x-request-id'));
\ No newline at end of file