mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
test(postman): update event file format to latest supported (#2055)
This commit is contained in:
@ -117,7 +117,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install newman from fork
|
- name: Install newman from fork
|
||||||
run: |
|
run: |
|
||||||
npm install -g 'git+ssh://git@github.com:knutties/newman.git#feature/newman-dir'
|
npm install -g 'git+ssh://git@github.com:knutties/newman.git#37708c1fbf6b36240ac796a42dc5a7b435990764'
|
||||||
|
|
||||||
- name: Run Tests
|
- 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')}}
|
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')}}
|
||||||
|
|||||||
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/aci/.event.meta.json
Normal file
6
postman/collection-dir/aci/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/aci/event.prerequest.js
Normal file
0
postman/collection-dir/aci/event.prerequest.js
Normal file
11
postman/collection-dir/aci/event.test.js
Normal file
11
postman/collection-dir/aci/event.test.js
Normal file
@ -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'));
|
||||||
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/adyen_uk/.event.meta.json
Normal file
6
postman/collection-dir/adyen_uk/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/adyen_uk/event.prerequest.js
Normal file
0
postman/collection-dir/adyen_uk/event.prerequest.js
Normal file
11
postman/collection-dir/adyen_uk/event.test.js
Normal file
11
postman/collection-dir/adyen_uk/event.test.js
Normal file
@ -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'));
|
||||||
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/airwallex/.event.meta.json
Normal file
6
postman/collection-dir/airwallex/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
11
postman/collection-dir/airwallex/event.test.js
Normal file
11
postman/collection-dir/airwallex/event.test.js
Normal file
@ -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'));
|
||||||
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/authorizedotnet/.event.meta.json
Normal file
6
postman/collection-dir/authorizedotnet/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
11
postman/collection-dir/authorizedotnet/event.test.js
Normal file
11
postman/collection-dir/authorizedotnet/event.test.js
Normal file
@ -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'));
|
||||||
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/bambora/.event.meta.json
Normal file
6
postman/collection-dir/bambora/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/bambora/event.prerequest.js
Normal file
0
postman/collection-dir/bambora/event.prerequest.js
Normal file
11
postman/collection-dir/bambora/event.test.js
Normal file
11
postman/collection-dir/bambora/event.test.js
Normal file
@ -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'));
|
||||||
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/bambora_3ds/.event.meta.json
Normal file
6
postman/collection-dir/bambora_3ds/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
11
postman/collection-dir/bambora_3ds/event.test.js
Normal file
11
postman/collection-dir/bambora_3ds/event.test.js
Normal file
@ -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'));
|
||||||
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/bluesnap/.event.meta.json
Normal file
6
postman/collection-dir/bluesnap/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/bluesnap/event.prerequest.js
Normal file
0
postman/collection-dir/bluesnap/event.prerequest.js
Normal file
11
postman/collection-dir/bluesnap/event.test.js
Normal file
11
postman/collection-dir/bluesnap/event.test.js
Normal file
@ -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'));
|
||||||
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/braintree/.event.meta.json
Normal file
6
postman/collection-dir/braintree/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
11
postman/collection-dir/braintree/event.test.js
Normal file
11
postman/collection-dir/braintree/event.test.js
Normal file
@ -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'));
|
||||||
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/checkout/.event.meta.json
Normal file
6
postman/collection-dir/checkout/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/checkout/event.prerequest.js
Normal file
0
postman/collection-dir/checkout/event.prerequest.js
Normal file
11
postman/collection-dir/checkout/event.test.js
Normal file
11
postman/collection-dir/checkout/event.test.js
Normal file
@ -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'));
|
||||||
@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
"event": [
|
|
||||||
{
|
|
||||||
"listen": "prerequest",
|
|
||||||
"script": {
|
|
||||||
"type": "text/javascript",
|
|
||||||
"exec": [
|
|
||||||
""
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"listen": "test",
|
|
||||||
"script": {
|
|
||||||
"type": "text/javascript",
|
|
||||||
"exec": [
|
|
||||||
""
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/forte/.event.meta.json
Normal file
6
postman/collection-dir/forte/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/forte/event.prerequest.js
Normal file
0
postman/collection-dir/forte/event.prerequest.js
Normal file
0
postman/collection-dir/forte/event.test.js
Normal file
0
postman/collection-dir/forte/event.test.js
Normal file
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/globalpay/.event.meta.json
Normal file
6
postman/collection-dir/globalpay/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
11
postman/collection-dir/globalpay/event.test.js
Normal file
11
postman/collection-dir/globalpay/event.test.js
Normal file
@ -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'));
|
||||||
@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
"event": [
|
|
||||||
{
|
|
||||||
"listen": "prerequest",
|
|
||||||
"script": {
|
|
||||||
"type": "text/javascript",
|
|
||||||
"exec": [
|
|
||||||
""
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"listen": "test",
|
|
||||||
"script": {
|
|
||||||
"type": "text/javascript",
|
|
||||||
"exec": [
|
|
||||||
""
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/hyperswitch/.event.meta.json
Normal file
6
postman/collection-dir/hyperswitch/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/hyperswitch/event.test.js
Normal file
0
postman/collection-dir/hyperswitch/event.test.js
Normal file
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/mollie/.event.meta.json
Normal file
6
postman/collection-dir/mollie/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/mollie/event.prerequest.js
Normal file
0
postman/collection-dir/mollie/event.prerequest.js
Normal file
11
postman/collection-dir/mollie/event.test.js
Normal file
11
postman/collection-dir/mollie/event.test.js
Normal file
@ -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'));
|
||||||
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/multisafepay/.event.meta.json
Normal file
6
postman/collection-dir/multisafepay/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
11
postman/collection-dir/multisafepay/event.test.js
Normal file
11
postman/collection-dir/multisafepay/event.test.js
Normal file
@ -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'));
|
||||||
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/nexinets/.event.meta.json
Normal file
6
postman/collection-dir/nexinets/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/nexinets/event.prerequest.js
Normal file
0
postman/collection-dir/nexinets/event.prerequest.js
Normal file
11
postman/collection-dir/nexinets/event.test.js
Normal file
11
postman/collection-dir/nexinets/event.test.js
Normal file
@ -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'));
|
||||||
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/nmi/.event.meta.json
Normal file
6
postman/collection-dir/nmi/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/nmi/event.prerequest.js
Normal file
0
postman/collection-dir/nmi/event.prerequest.js
Normal file
11
postman/collection-dir/nmi/event.test.js
Normal file
11
postman/collection-dir/nmi/event.test.js
Normal file
@ -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'));
|
||||||
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/payme/.event.meta.json
Normal file
6
postman/collection-dir/payme/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/payme/event.prerequest.js
Normal file
0
postman/collection-dir/payme/event.prerequest.js
Normal file
11
postman/collection-dir/payme/event.test.js
Normal file
11
postman/collection-dir/payme/event.test.js
Normal file
@ -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'));
|
||||||
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/paypal/.event.meta.json
Normal file
6
postman/collection-dir/paypal/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/paypal/event.prerequest.js
Normal file
0
postman/collection-dir/paypal/event.prerequest.js
Normal file
11
postman/collection-dir/paypal/event.test.js
Normal file
11
postman/collection-dir/paypal/event.test.js
Normal file
@ -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'));
|
||||||
@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
"event": [
|
|
||||||
{
|
|
||||||
"listen": "prerequest",
|
|
||||||
"script": {
|
|
||||||
"type": "text/javascript",
|
|
||||||
"exec": [
|
|
||||||
""
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"listen": "test",
|
|
||||||
"script": {
|
|
||||||
"type": "text/javascript",
|
|
||||||
"exec": [
|
|
||||||
""
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/powertranz/.event.meta.json
Normal file
6
postman/collection-dir/powertranz/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/powertranz/event.test.js
Normal file
0
postman/collection-dir/powertranz/event.test.js
Normal file
@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
"event": [
|
|
||||||
{
|
|
||||||
"listen": "prerequest",
|
|
||||||
"script": {
|
|
||||||
"type": "text/javascript",
|
|
||||||
"exec": [
|
|
||||||
""
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"listen": "test",
|
|
||||||
"script": {
|
|
||||||
"type": "text/javascript",
|
|
||||||
"exec": [
|
|
||||||
""
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/rapyd/.event.meta.json
Normal file
6
postman/collection-dir/rapyd/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/rapyd/event.prerequest.js
Normal file
0
postman/collection-dir/rapyd/event.prerequest.js
Normal file
0
postman/collection-dir/rapyd/event.test.js
Normal file
0
postman/collection-dir/rapyd/event.test.js
Normal file
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/shift4/.event.meta.json
Normal file
6
postman/collection-dir/shift4/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/shift4/event.prerequest.js
Normal file
0
postman/collection-dir/shift4/event.prerequest.js
Normal file
11
postman/collection-dir/shift4/event.test.js
Normal file
11
postman/collection-dir/shift4/event.test.js
Normal file
@ -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'));
|
||||||
@ -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'));",
|
|
||||||
""
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/stripe/.event.meta.json
Normal file
6
postman/collection-dir/stripe/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/stripe/event.prerequest.js
Normal file
0
postman/collection-dir/stripe/event.prerequest.js
Normal file
11
postman/collection-dir/stripe/event.test.js
Normal file
11
postman/collection-dir/stripe/event.test.js
Normal file
@ -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'));
|
||||||
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/trustpay/.event.meta.json
Normal file
6
postman/collection-dir/trustpay/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/trustpay/event.prerequest.js
Normal file
0
postman/collection-dir/trustpay/event.prerequest.js
Normal file
11
postman/collection-dir/trustpay/event.test.js
Normal file
11
postman/collection-dir/trustpay/event.test.js
Normal file
@ -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'));
|
||||||
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/worldline/.event.meta.json
Normal file
6
postman/collection-dir/worldline/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
11
postman/collection-dir/worldline/event.test.js
Normal file
11
postman/collection-dir/worldline/event.test.js
Normal file
@ -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'));
|
||||||
@ -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'));"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
6
postman/collection-dir/zen/.event.meta.json
Normal file
6
postman/collection-dir/zen/.event.meta.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"eventOrder": [
|
||||||
|
"event.prerequest.js",
|
||||||
|
"event.test.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
postman/collection-dir/zen/event.prerequest.js
Normal file
0
postman/collection-dir/zen/event.prerequest.js
Normal file
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user