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

refactor(postman): Paypal test cases for Capture (#4265)

Sakil Mostaka071463b29f9
diff --git a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario11-Create Partial Capture payment/Payments - Capture/event.test.js b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario11-Create Partial Capture payment/Payments - Capture/event.test.js
index d08e91cd6e..1fbef27183 100644
--- a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario11-Create Partial Capture payment/Payments - Capture/event.test.js
+++ b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario11-Create Partial Capture payment/Payments - Capture/event.test.js
@@ -101,9 +101,9 @@ if (jsonData?.amount_received) {
// Response body should have value "6540" for "amount_capturable"
if (jsonData?.amount_capturable) {
pm.test(
- "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'",
+ "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 6540",
function () {
- pm.expect(jsonData.amount_capturable).to.eql(540);
+ pm.expect(jsonData.amount_capturable).to.eql(6540);
},
);
}
diff --git a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario11-Create Partial Capture payment/Payments - Retrieve/event.test.js b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario11-Create Partial Capture payment/Payments - Retrieve/event.test.js
index 8e84e4b384..06abc1d37a 100644
--- a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario11-Create Partial Capture payment/Payments - Retrieve/event.test.js
+++ b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario11-Create Partial Capture payment/Payments - Retrieve/event.test.js
@@ -98,9 +98,9 @@ if (jsonData?.amount_received) {
// Response body should have value "6540" for "amount_capturable"
if (jsonData?.amount_capturable) {
pm.test(
- "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'",
+ "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 6540'",
function () {
- pm.expect(jsonData.amount_capturable).to.eql(540);
+ pm.expect(jsonData.amount_capturable).to.eql(6540);
},
);
}
diff --git a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture with confirm false/Payments - Capture/event.test.js b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture with confirm false/Payments - Capture/event.test.js
index d08e91cd6e..6b58fbb86f 100644
--- a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture with confirm false/Payments - Capture/event.test.js
+++ b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture with confirm false/Payments - Capture/event.test.js
@@ -101,9 +101,9 @@ if (jsonData?.amount_received) {
// Response body should have value "6540" for "amount_capturable"
if (jsonData?.amount_capturable) {
pm.test(
- "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'",
+ "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 6540'",
function () {
- pm.expect(jsonData.amount_capturable).to.eql(540);
+ pm.expect(jsonData.amount_capturable).to.eql(6540);
},
);
}
diff --git a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture with confirm false/Payments - Retrieve/event.test.js b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture with confirm false/Payments - Retrieve/event.test.js
index 8e84e4b384..06abc1d37a 100644
--- a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture with confirm false/Payments - Retrieve/event.test.js
+++ b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture with confirm false/Payments - Retrieve/event.test.js
@@ -98,9 +98,9 @@ if (jsonData?.amount_received) {
// Response body should have value "6540" for "amount_capturable"
if (jsonData?.amount_capturable) {
pm.test(
- "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'",
+ "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 6540'",
function () {
- pm.expect(jsonData.amount_capturable).to.eql(540);
+ pm.expect(jsonData.amount_capturable).to.eql(6540);
},
);
}
diff --git a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/event.test.js b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/event.test.js
index d2574b4816..0085a8a114 100644
--- a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/event.test.js
+++ b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Capture/event.test.js
@@ -101,9 +101,9 @@ if (jsonData?.amount_received) {
// Response body should have value "6540" for "amount_capturable"
if (jsonData?.amount_capturable) {
pm.test(
- "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'",
+ "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 6540",
function () {
- pm.expect(jsonData.amount_capturable).to.eql(0);
+ pm.expect(jsonData.amount_capturable).to.eql(6540);
},
);
}
diff --git a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/event.test.js b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/event.test.js
index c5396fe43d..021d1f1475 100644
--- a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/event.test.js
+++ b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Retrieve/event.test.js
@@ -98,9 +98,9 @@ if (jsonData?.amount_received) {
// Response body should have value "6540" for "amount_capturable"
if (jsonData?.amount_capturable) {
pm.test(
- "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'",
+ "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 6540'",
function () {
- pm.expect(jsonData.amount_capturable).to.eql(0);
+ pm.expect(jsonData.amount_capturable).to.eql(6540);
},
);
}
diff --git a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario8-Create payment with Manual capture with confirm false and surcharge_data/Payments - Capture/event.test.js b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario8-Create payment with Manual capture with confirm false and surcharge_data/Payments - Capture/event.test.js
index 432edf05d3..b09744cff1 100644
--- a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario8-Create payment with Manual capture with confirm false and surcharge_data/Payments - Capture/event.test.js
+++ b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario8-Create payment with Manual capture with confirm false and surcharge_data/Payments - Capture/event.test.js
@@ -101,9 +101,9 @@ if (jsonData?.amount_received) {
// Response body should have value "6540" for "amount_capturable"
if (jsonData?.amount_capturable) {
pm.test(
- "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 0",
+ "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 6550",
function () {
- pm.expect(jsonData.amount_capturable).to.eql(0);
+ pm.expect(jsonData.amount_capturable).to.eql(6550);
},
);
}
diff --git a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario8-Create payment with Manual capture with confirm false and surcharge_data/Payments - Retrieve/event.test.js b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario8-Create payment with Manual capture with confirm false and surcharge_data/Payments - Retrieve/event.test.js
index 5097d1cf94..69fd556346 100644
--- a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario8-Create payment with Manual capture with confirm false and surcharge_data/Payments - Retrieve/event.test.js
+++ b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario8-Create payment with Manual capture with confirm false and surcharge_data/Payments - Retrieve/event.test.js
@@ -98,9 +98,9 @@ if (jsonData?.amount_received) {
// Response body should have value "6540" for "amount_capturable"
if (jsonData?.amount_capturable) {
pm.test(
- "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'",
+ "[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 6550'",
function () {
- pm.expect(jsonData.amount_capturable).to.eql(540);
+ pm.expect(jsonData.amount_capturable).to.eql(6550);
},
);
}
diff --git a/postman/collection-json/paypal.postman_collection.json b/postman/collection-json/paypal.postman_collection.json
index bcb508da4c..9063afe7b0 100644
--- a/postman/collection-json/paypal.postman_collection.json
+++ b/postman/collection-json/paypal.postman_collection.json
@@ -1116,9 +1116,9 @@
"// Response body should have value \"6540\" for \"amount_capturable\"",
"if (jsonData?.amount_capturable) {",
" pm.test(",
- " \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 0\",",
+ " \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 6550\",",
" function () {",
- " pm.expect(jsonData.amount_capturable).to.eql(0);",
+ " pm.expect(jsonData.amount_capturable).to.eql(6550);",
" },",
" );",
"}",
@@ -1285,9 +1285,9 @@
"// Response body should have value \"6540\" for \"amount_capturable\"",
"if (jsonData?.amount_capturable) {",
" pm.test(",
- " \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'\",",
+ " \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 6550'\",",
" function () {",
- " pm.expect(jsonData.amount_capturable).to.eql(540);",
+ " pm.expect(jsonData.amount_capturable).to.eql(6550);",
" },",
" );",
"}",
@@ -3023,9 +3023,9 @@
"// Response body should have value \"6540\" for \"amount_capturable\"",
"if (jsonData?.amount_capturable) {",
" pm.test(",
- " \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'\",",
+ " \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 6540'\",",
" function () {",
- " pm.expect(jsonData.amount_capturable).to.eql(540);",
+ " pm.expect(jsonData.amount_capturable).to.eql(6540);",
" },",
" );",
"}",
@@ -3185,9 +3185,9 @@
"// Response body should have value \"6540\" for \"amount_capturable\"",
"if (jsonData?.amount_capturable) {",
" pm.test(",
- " \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'\",",
+ " \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 6540'\",",
" function () {",
- " pm.expect(jsonData.amount_capturable).to.eql(540);",
+ " pm.expect(jsonData.amount_capturable).to.eql(6540);",
" },",
" );",
"}",
@@ -3500,9 +3500,9 @@
"// Response body should have value \"6540\" for \"amount_capturable\"",
"if (jsonData?.amount_capturable) {",
" pm.test(",
- " \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'\",",
+ " \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 6540\",",
" function () {",
- " pm.expect(jsonData.amount_capturable).to.eql(0);",
+ " pm.expect(jsonData.amount_capturable).to.eql(6540);",
" },",
" );",
"}",
@@ -3662,9 +3662,9 @@
"// Response body should have value \"6540\" for \"amount_capturable\"",
"if (jsonData?.amount_capturable) {",
" pm.test(",
- " \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'\",",
+ " \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 6540'\",",
" function () {",
- " pm.expect(jsonData.amount_capturable).to.eql(0);",
+ " pm.expect(jsonData.amount_capturable).to.eql(6540);",
" },",
" );",
"}",
@@ -3977,9 +3977,9 @@
"// Response body should have value \"6540\" for \"amount_capturable\"",
"if (jsonData?.amount_capturable) {",
" pm.test(",
- " \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'\",",
+ " \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 6540\",",
" function () {",
- " pm.expect(jsonData.amount_capturable).to.eql(540);",
+ " pm.expect(jsonData.amount_capturable).to.eql(6540);",
" },",
" );",
"}",
@@ -4139,9 +4139,9 @@
"// Response body should have value \"6540\" for \"amount_capturable\"",
"if (jsonData?.amount_capturable) {",
" pm.test(",
- " \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 540'\",",
+ " \"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 6540'\",",
" function () {",
- " pm.expect(jsonData.amount_capturable).to.eql(540);",
+ " pm.expect(jsonData.amount_capturable).to.eql(6540);",
" },",
" );",
"}",