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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
ci(postman): Fix Paypal capture assertion failure (#2165)
Pa1NarK3e26084f3180
diff --git a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/event.test.js b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/event.test.jsindex 67a19c80f0..615015e3f2 100644--- a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/event.test.js+++ b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Confirm/event.test.js@@ -88,12 +88,12 @@ if (jsonData?.amount) {);}-// Response body should have value "6540" for "amount_capturable"+// Response body should have value "0" for "amount_capturable"if (jsonData?.amount) {pm.test("[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 0'",function () {- pm.expect(jsonData.amount_capturable).to.eql(6540);+ pm.expect(jsonData.amount_capturable).to.eql(0);},);}diff --git a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/event.test.js b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/event.test.jsindex f1d49169ba..286e0db843 100644--- a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/event.test.js+++ b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Retrieve/event.test.js@@ -85,12 +85,12 @@ if (jsonData?.amount) {);}-// Response body should have value "6540" for "amount_capturable"+// Response body should have value "0" for "amount_capturable"if (jsonData?.amount) {pm.test("[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 0'",function () {- pm.expect(jsonData.amount_capturable).to.eql(6540);+ pm.expect(jsonData.amount_capturable).to.eql(0);},);}diff --git a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/event.test.js b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/event.test.jsindex fa4f277ad6..caeefcaa56 100644--- a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/event.test.js+++ b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/event.test.js@@ -88,12 +88,12 @@ if (jsonData?.amount) {);}-// Response body should have value "6540" for "amount_capturable"+// Response body should have value "0" for "amount_capturable"if (jsonData?.amount) {pm.test("[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 0'",function () {- pm.expect(jsonData.amount_capturable).to.eql(6540);+ pm.expect(jsonData.amount_capturable).to.eql(0);},);}diff --git a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/event.test.js b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/event.test.jsindex f1d49169ba..286e0db843 100644--- a/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/event.test.js+++ b/postman/collection-dir/paypal/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Retrieve/event.test.js@@ -85,12 +85,12 @@ if (jsonData?.amount) {);}-// Response body should have value "6540" for "amount_capturable"+// Response body should have value "0" for "amount_capturable"if (jsonData?.amount) {pm.test("[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 0'",function () {- pm.expect(jsonData.amount_capturable).to.eql(6540);+ pm.expect(jsonData.amount_capturable).to.eql(0);},);}