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): Remove update_mandate_id test in Cybersource collection (#4526)
likhinbopannaecc97bc8684d
diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/.meta.jsonindex 9339372cc7..c5e687f68c 100644--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/.meta.json+++ b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/.meta.json@@ -22,9 +22,8 @@"Scenario15-Incremental auth with partial capture","Scenario16-Verify PML for mandate","Scenario17-Revoke mandates",- "Scenario18-Update mandate card details",- "Scenario19-Create 3ds payment",- "Scenario20-Create 3ds mandate",- "Scenario21-Create a mandate without customer acceptance"+ "Scenario18-Create 3ds payment",+ "Scenario19-Create 3ds mandate",+ "Scenario20-Create a mandate without customer acceptance"]}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/.meta.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/.meta.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/.meta.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates-copy/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/Payments - Create/.event.meta.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates-copy/.event.meta.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/Payments - Create/.event.meta.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/Payments - Create/event.test.jssimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/Payments - Create/event.test.jsrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/Payments - Create/event.test.jsdiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/Payments - Create/request.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/Payments - Create/request.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/Payments - Create/request.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates-copy/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/Payments - Create/response.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates-copy/response.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/Payments - Create/response.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/Payments - Retrieve/.event.meta.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates/.event.meta.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/Payments - Retrieve/.event.meta.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/Payments - Retrieve/event.test.jssimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/Payments - Retrieve/event.test.jsrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/Payments - Retrieve/event.test.jsdiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Retrieve-copy/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/Payments - Retrieve/request.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Retrieve-copy/request.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/Payments - Retrieve/request.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/Payments - Retrieve/response.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates/response.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Create 3ds payment/Payments - Retrieve/response.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/.meta.jsondeleted file mode 100644index 20ac234bf9..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/.meta.json+++ /dev/null@@ -1,11 +0,0 @@-{- "childrenOrder": [- "Payments - Create",- "Payments - Retrieve",- "List - Mandates",- "Mandate - Update",- "List - Mandates-copy",- "Recurring Payments - Create",- "Payments - Retrieve-copy"- ]-}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates-copy/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates-copy/event.test.jsdeleted file mode 100644index 0d07a384ae..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates-copy/event.test.js+++ /dev/null@@ -1,46 +0,0 @@-// Validate status 2xx-pm.test("[GET]::/payments/:id - Status code is 2xx", function () {- pm.response.to.be.success;-});--// Validate if response header has matching content-type-pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {- pm.expect(pm.response.headers.get("Content-Type")).to.include(- "application/json",- );-});--// Set response object as internal variable-let jsonData = {};-try {- jsonData = pm.response.json();-} catch (e) {}---// Response body should have value "active" for "status"-if (jsonData?.status) {- pm.test(- "[POST]::/payments - Content check if value for 'status' matches 'active'",- function () {- pm.expect(jsonData.status).to.eql("active");- },- );-}--pm.test("[POST]::/payments - Verify last 4 digits of the card", function () {- var jsonData = pm.response.json();- pm.expect(jsonData.card.last4_digits).to.eql("1111");-});--pm.test("[POST]::/payments - Verify card expiration month", function () {- var jsonData = pm.response.json();- pm.expect(jsonData.card.card_exp_month).to.eql("12");-});--pm.test("[POST]::/payments - Verify card expiration year", function () {- var jsonData = pm.response.json();- pm.expect(jsonData.card.card_exp_year).to.eql("30");-});---diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates-copy/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates-copy/request.jsondeleted file mode 100644index 349b511744..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates-copy/request.json+++ /dev/null@@ -1,27 +0,0 @@-{- "method": "GET",- "header": [- {- "key": "Accept",- "value": "application/json"- }- ],- "url": {- "raw": "{{baseUrl}}/mandates/:id",- "host": [- "{{baseUrl}}"- ],- "path": [- "mandates",- ":id"- ],- "variable": [- {- "key": "id",- "value": "{{mandate_id}}",- "description": "(Required) Unique mandate id"- }- ]- },- "description": "To list the details of a mandate"-}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates/event.test.jsdeleted file mode 100644index 3a7c6c4468..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates/event.test.js+++ /dev/null@@ -1,46 +0,0 @@-// Validate status 2xx-pm.test("[GET]::/payments/:id - Status code is 2xx", function () {- pm.response.to.be.success;-});--// Validate if response header has matching content-type-pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {- pm.expect(pm.response.headers.get("Content-Type")).to.include(- "application/json",- );-});--// Set response object as internal variable-let jsonData = {};-try {- jsonData = pm.response.json();-} catch (e) {}---// Response body should have value "active" for "status"-if (jsonData?.status) {- pm.test(- "[POST]::/payments - Content check if value for 'status' matches 'active'",- function () {- pm.expect(jsonData.status).to.eql("active");- },- );-}--pm.test("[POST]::/payments - Verify last 4 digits of the card", function () {- var jsonData = pm.response.json();- pm.expect(jsonData.card.last4_digits).to.eql("4242");-});--pm.test("[POST]::/payments - Verify card expiration month", function () {- var jsonData = pm.response.json();- pm.expect(jsonData.card.card_exp_month).to.eql("10");-});--pm.test("[POST]::/payments - Verify card expiration year", function () {- var jsonData = pm.response.json();- pm.expect(jsonData.card.card_exp_year).to.eql("25");-});---diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates/request.jsondeleted file mode 100644index 349b511744..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/List - Mandates/request.json+++ /dev/null@@ -1,27 +0,0 @@-{- "method": "GET",- "header": [- {- "key": "Accept",- "value": "application/json"- }- ],- "url": {- "raw": "{{baseUrl}}/mandates/:id",- "host": [- "{{baseUrl}}"- ],- "path": [- "mandates",- ":id"- ],- "variable": [- {- "key": "id",- "value": "{{mandate_id}}",- "description": "(Required) Unique mandate id"- }- ]- },- "description": "To list the details of a mandate"-}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Mandate - Update/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Mandate - Update/event.test.jsdeleted file mode 100644index 13d57327d2..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Mandate - Update/event.test.js+++ /dev/null@@ -1,80 +0,0 @@-// Validate status 2xx-pm.test("[POST]::/payments - Status code is 2xx", function () {- pm.response.to.be.success;-});--// Validate if response header has matching content-type-pm.test("[POST]::/payments - Content-Type is application/json", function () {- pm.expect(pm.response.headers.get("Content-Type")).to.include(- "application/json",- );-});--// Validate if response has JSON Body-pm.test("[POST]::/payments - Response has JSON Body", function () {- pm.response.to.have.jsonBody();-});--// 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(- "- use {{payment_id}} as collection variable for value",- jsonData.payment_id,- );-} else {- console.log(- "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",- );-}--// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id-if (jsonData?.mandate_id) {- pm.collectionVariables.set("mandate_id", jsonData.mandate_id);- console.log(- "- use {{mandate_id}} as collection variable for value",- jsonData.mandate_id,- );-} else {- console.log(- "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",- );-}--// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret-if (jsonData?.client_secret) {- pm.collectionVariables.set("client_secret", jsonData.client_secret);- console.log(- "- use {{client_secret}} as collection variable for value",- jsonData.client_secret,- );-} else {- console.log(- "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",- );-}--// Response body should have value "succeeded" for "status"-if (jsonData?.status) {- pm.test(- "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",- function () {- pm.expect(jsonData.status).to.eql("succeeded");- },- );-}--// Response body should have "mandate_id"-pm.test(- "[POST]::/payments - Content check if 'mandate_id' exists",- function () {- pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;- },-);-diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Mandate - Update/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Mandate - Update/request.jsondeleted file mode 100644index b8a76d3412..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Mandate - Update/request.json+++ /dev/null@@ -1,102 +0,0 @@-{- "method": "POST",- "header": [- {- "key": "Content-Type",- "value": "application/json"- },- {- "key": "Accept",- "value": "application/json"- }- ],- "body": {- "mode": "raw",- "options": {- "raw": {- "language": "json"- }- },- "raw_json_formatted": {- "amount": 0,- "currency": "USD",- "confirm": true,- "capture_method": "automatic",- "capture_on": "2022-09-10T10:11:12Z",- "customer_id": "{{customer_id}}",- "email": "[email protected]",- "name": "John Doe",- "phone": "999999999",- "phone_country_code": "+65",- "description": "Its my first payment request",- "authentication_type": "no_three_ds",- "return_url": "https://duck.com",- "payment_method": "card",- "payment_method_type": "debit",- "payment_method_data": {- "card": {- "card_number": "4111111111111111",- "card_exp_month": "12",- "card_exp_year": "30",- "card_holder_name": "joseph Doe",- "card_cvc": "123"- }- },- "payment_type": "setup_mandate",- "setup_future_usage": "off_session",- "mandate_data": {- "update_mandate_id": "{{mandate_id}}",- "customer_acceptance": {- "acceptance_type": "offline",- "accepted_at": "1963-05-03T04:07:52.723Z",- "online": {- "ip_address": "127.0.0.1",- "user_agent": "amet irure esse"- }- }- },- "shipping": {- "address": {- "line1": "1467",- "line2": "Harrison Street",- "line3": "Harrison Street",- "city": "San Fransico",- "state": "California",- "zip": "94122",- "country": "US",- "first_name": "likhin",- "last_name": "bopanna"- }- },- "billing": {- "address": {- "line1": "1467",- "line2": "Harrison Street",- "line3": "Harrison Street",- "city": "San Fransico",- "state": "California",- "zip": "94122",- "country": "US",- "first_name": "likhin",- "last_name": "bopanna"- }- },- "statement_descriptor_name": "joseph",- "statement_descriptor_suffix": "JS",- "metadata": {- "count_tickets": 1,- "transaction_number": "5590045"- }- }- },- "url": {- "raw": "{{baseUrl}}/payments",- "host": [- "{{baseUrl}}"- ],- "path": [- "payments"- ]- },- "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"-}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Create/event.test.jsdeleted file mode 100644index 29cba98918..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Create/event.test.js+++ /dev/null@@ -1,109 +0,0 @@-// Validate status 2xx-pm.test("[POST]::/payments - Status code is 2xx", function () {- pm.response.to.be.success;-});--// Validate if response header has matching content-type-pm.test("[POST]::/payments - Content-Type is application/json", function () {- pm.expect(pm.response.headers.get("Content-Type")).to.include(- "application/json",- );-});--// Validate if response has JSON Body-pm.test("[POST]::/payments - Response has JSON Body", function () {- pm.response.to.have.jsonBody();-});--// 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(- "- use {{payment_id}} as collection variable for value",- jsonData.payment_id,- );-} else {- console.log(- "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",- );-}--// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id-if (jsonData?.mandate_id) {- pm.collectionVariables.set("mandate_id", jsonData.mandate_id);- console.log(- "- use {{mandate_id}} as collection variable for value",- jsonData.mandate_id,- );-} else {- console.log(- "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",- );-}--// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret-if (jsonData?.client_secret) {- pm.collectionVariables.set("client_secret", jsonData.client_secret);- console.log(- "- use {{client_secret}} as collection variable for value",- jsonData.client_secret,- );-} else {- console.log(- "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",- );-}--// Response body should have value "succeeded" for "status"-if (jsonData?.status) {- pm.test(- "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",- function () {- pm.expect(jsonData.status).to.eql("succeeded");- },- );-}--// Response body should have value "succeeded" for "status"-if (jsonData?.status) {- pm.test(- "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",- function () {- pm.expect(jsonData.status).to.eql("succeeded");- },- );-}--// Response body should have "mandate_id"-pm.test(- "[POST]::/payments - Content check if 'mandate_id' exists",- function () {- pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;- },-);--// Response body should have "mandate_data"-pm.test(- "[POST]::/payments - Content check if 'mandate_data' exists",- function () {- pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;- },-);--if (jsonData?.customer_id) {- pm.collectionVariables.set("customer_id", jsonData.customer_id);- console.log(- "- use {{customer_id}} as collection variable for value",- jsonData.client_secret,- );-} else {- console.log(- "INFO - Unable to assign variable {{customer_id}}, as jsonData.customer_id is undefined.",- );-}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Create/request.jsondeleted file mode 100644index 4a69899716..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Create/request.json+++ /dev/null@@ -1,106 +0,0 @@-{- "method": "POST",- "header": [- {- "key": "Content-Type",- "value": "application/json"- },- {- "key": "Accept",- "value": "application/json"- }- ],- "body": {- "mode": "raw",- "options": {- "raw": {- "language": "json"- }- },- "raw_json_formatted": {- "amount": 0,- "currency": "USD",- "confirm": true,- "capture_method": "automatic",- "capture_on": "2022-09-10T10:11:12Z",- "customer_id": "customer_{{$randomAbbreviation}}",- "email": "[email protected]",- "name": "John Doe",- "phone": "999999999",- "phone_country_code": "+65",- "description": "Its my first payment request",- "authentication_type": "no_three_ds",- "return_url": "https://duck.com",- "payment_method": "card",- "payment_method_data": {- "card": {- "card_number": "4242424242424242",- "card_exp_month": "10",- "card_exp_year": "25",- "card_holder_name": "joseph Doe",- "card_cvc": "123"- }- },- "payment_type": "setup_mandate",- "setup_future_usage": "off_session",- "mandate_data": {- "customer_acceptance": {- "acceptance_type": "offline",- "accepted_at": "1963-05-03T04:07:52.723Z",- "online": {- "ip_address": "127.0.0.1",- "user_agent": "amet irure esse"- }- },- "mandate_type": {- "single_use": {- "amount": 7000,- "currency": "USD"- }- }- },- "shipping": {- "address": {- "line1": "1467",- "line2": "Harrison Street",- "line3": "Harrison Street",- "city": "San Fransico",- "state": "California",- "zip": "94122",- "country": "US",- "first_name": "likhin",- "last_name": "bopanna"- }- },- "billing": {- "address": {- "line1": "1467",- "line2": "Harrison Street",- "line3": "Harrison Street",- "city": "San Fransico",- "state": "California",- "zip": "94122",- "country": "US",- "first_name": "likhin",- "last_name": "bopanna"- }- },- "statement_descriptor_name": "joseph",- "statement_descriptor_suffix": "JS",- "metadata": {- "count_tickets": 1,- "transaction_number": "5590045"- }- }- },- "url": {- "raw": "{{baseUrl}}/payments",- "host": [- "{{baseUrl}}"- ],- "path": [- "payments"- ]- },- "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"-}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Retrieve/event.test.jsdeleted file mode 100644index 4d0a9b9ca2..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Retrieve/event.test.js+++ /dev/null@@ -1,87 +0,0 @@-// Validate status 2xx-pm.test("[GET]::/payments/:id - Status code is 2xx", function () {- pm.response.to.be.success;-});--// Validate if response header has matching content-type-pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {- pm.expect(pm.response.headers.get("Content-Type")).to.include(- "application/json",- );-});--// Validate if response has JSON Body-pm.test("[GET]::/payments/:id - Response has JSON Body", function () {- pm.response.to.have.jsonBody();-});--// 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(- "- use {{payment_id}} as collection variable for value",- jsonData.payment_id,- );-} else {- console.log(- "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",- );-}--// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret-if (jsonData?.client_secret) {- pm.collectionVariables.set("client_secret", jsonData.client_secret);- console.log(- "- use {{client_secret}} as collection variable for value",- jsonData.client_secret,- );-} else {- console.log(- "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",- );-}--// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id-if (jsonData?.mandate_id) {- pm.collectionVariables.set("mandate_id", jsonData.mandate_id);- console.log(- "- use {{mandate_id}} as collection variable for value",- jsonData.mandate_id,- );-} else {- console.log(- "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",- );-}--// Response body should have value "Succeeded" for "status"-if (jsonData?.status) {- pm.test(- "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",- function () {- pm.expect(jsonData.status).to.eql("succeeded");- },- );-}--// Response body should have "mandate_id"-pm.test(- "[POST]::/payments - Content check if 'mandate_id' exists",- function () {- pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;- },-);--// Response body should have "mandate_data"-pm.test(- "[POST]::/payments - Content check if 'mandate_data' exists",- function () {- pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;- },-);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/.meta.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/.meta.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/.meta.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Mandate - Update/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/Payments - Create/.event.meta.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Mandate - Update/.event.meta.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/Payments - Create/.event.meta.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/Payments - Create/event.test.jssimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Create/event.test.jsrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/Payments - Create/event.test.jsdiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/Payments - Create/request.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Create/request.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/Payments - Create/request.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Mandate - Update/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/Payments - Create/response.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Mandate - Update/response.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/Payments - Create/response.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/Payments - Retrieve/.event.meta.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Create/.event.meta.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/Payments - Retrieve/.event.meta.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/Payments - Retrieve/event.test.jssimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Retrieve/event.test.jsrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/Payments - Retrieve/event.test.jsdiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/Payments - Retrieve/request.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Retrieve/request.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/Payments - Retrieve/request.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/Payments - Retrieve/response.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Create/response.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds mandate/Payments - Retrieve/response.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/Payments - Retrieve/.event.meta.jsondeleted file mode 100644index 688c85746e..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/Payments - Retrieve/.event.meta.json+++ /dev/null@@ -1,5 +0,0 @@-{- "eventOrder": [- "event.test.js"- ]-}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Create/.event.meta.jsondeleted file mode 100644index 688c85746e..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Create/.event.meta.json+++ /dev/null@@ -1,5 +0,0 @@-{- "eventOrder": [- "event.test.js"- ]-}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Create/response.jsondeleted file mode 100644index fe51488c70..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Create/response.json+++ /dev/null@@ -1 +0,0 @@-[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Retrieve/.event.meta.jsondeleted file mode 100644index 688c85746e..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Retrieve/.event.meta.json+++ /dev/null@@ -1,5 +0,0 @@-{- "eventOrder": [- "event.test.js"- ]-}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Retrieve/response.jsondeleted file mode 100644index fe51488c70..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Retrieve/response.json+++ /dev/null@@ -1 +0,0 @@-[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/.meta.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/.meta.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/.meta.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Confirm/.event.meta.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/.event.meta.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Confirm/.event.meta.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/event.prerequest.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Confirm/event.prerequest.jssimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/event.prerequest.jsrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Confirm/event.prerequest.jsdiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Confirm/event.test.jssimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/event.test.jsrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Confirm/event.test.jsdiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Confirm/request.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/request.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Confirm/request.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Retrieve-copy/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Confirm/response.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Retrieve-copy/response.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Confirm/response.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Create/.event.meta.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Retrieve-copy/.event.meta.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Create/.event.meta.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Create/event.test.jssimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/event.test.jsrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Create/event.test.jsdiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Create/request.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/request.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Create/request.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Create/response.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Retrieve/response.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Create/response.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Retrieve-copy/.event.meta.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Retrieve/.event.meta.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Retrieve-copy/.event.meta.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Retrieve-copy/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Retrieve-copy/event.test.jssimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Payments - Retrieve-copy/event.test.jsrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Retrieve-copy/event.test.jsdiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Retrieve-copy/request.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/Payments - Retrieve/request.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Retrieve-copy/request.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Recurring Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Retrieve-copy/response.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Recurring Payments - Create/response.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Retrieve-copy/response.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Recurring Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Retrieve/.event.meta.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Recurring Payments - Create/.event.meta.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Retrieve/.event.meta.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Retrieve/event.test.jssimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/event.test.jsrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Retrieve/event.test.jsdiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Retrieve/request.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create 3ds mandate/Payments - Retrieve/request.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Retrieve/request.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Retrieve/response.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/Payments - Create/response.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Payments - Retrieve/response.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Recurring Payments - Create/.event.meta.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/Payments - Create/.event.meta.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Recurring Payments - Create/.event.meta.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Recurring Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Recurring Payments - Create/event.test.jssimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Recurring Payments - Create/event.test.jsrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Recurring Payments - Create/event.test.jsdiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Recurring Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Recurring Payments - Create/request.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario18-Update mandate card details/Recurring Payments - Create/request.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Recurring Payments - Create/request.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Recurring Payments - Create/response.jsonsimilarity index 100%rename from postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario19-Create 3ds payment/Payments - Retrieve/response.jsonrename to postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario20-Create a mandate without customer acceptance/Recurring Payments - Create/response.jsondiff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/response.jsondeleted file mode 100644index fe51488c70..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Confirm/response.json+++ /dev/null@@ -1 +0,0 @@-[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/.event.meta.jsondeleted file mode 100644index 688c85746e..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/.event.meta.json+++ /dev/null@@ -1,5 +0,0 @@-{- "eventOrder": [- "event.test.js"- ]-}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/response.jsondeleted file mode 100644index fe51488c70..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Create/response.json+++ /dev/null@@ -1 +0,0 @@-[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/.event.meta.jsondeleted file mode 100644index 688c85746e..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/.event.meta.json+++ /dev/null@@ -1,5 +0,0 @@-{- "eventOrder": [- "event.test.js"- ]-}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/event.test.jsdeleted file mode 100644index fe8fa706b9..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/event.test.js+++ /dev/null@@ -1,75 +0,0 @@-// Validate status 2xx-pm.test("[GET]::/payments/:id - Status code is 2xx", function () {- pm.response.to.be.success;-});--// Validate if response header has matching content-type-pm.test("[GET]::/payments/:id - Content-Type is application/json", function () {- pm.expect(pm.response.headers.get("Content-Type")).to.include(- "application/json",- );-});--// Validate if response has JSON Body-pm.test("[GET]::/payments/:id - Response has JSON Body", function () {- pm.response.to.have.jsonBody();-});--// 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(- "- use {{payment_id}} as collection variable for value",- jsonData.payment_id,- );-} else {- console.log(- "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",- );-}---// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret-if (jsonData?.client_secret) {- pm.collectionVariables.set("client_secret", jsonData.client_secret);- console.log(- "- use {{client_secret}} as collection variable for value",- jsonData.client_secret,- );-} else {- console.log(- "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",- );-}--// Response body should have value "Succeeded" for "status"-if (jsonData?.status) {- pm.test(- "[POST]::/payments/:id - Content check if value for 'status' matches 'succeeded'",- function () {- pm.expect(jsonData.status).to.eql("succeeded");- },- );-}--// Response body should have "mandate_id"-pm.test(- "[POST]::/payments - Content check if 'mandate_id' exists",- function () {- pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;- },-);--// Response body should have "mandate_data"-pm.test(- "[POST]::/payments - Content check if 'mandate_data' exists",- function () {- pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;- },-);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/request.jsondeleted file mode 100644index b9ebc1be4a..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/request.json+++ /dev/null@@ -1,33 +0,0 @@-{- "method": "GET",- "header": [- {- "key": "Accept",- "value": "application/json"- }- ],- "url": {- "raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": [- "{{baseUrl}}"- ],- "path": [- "payments",- ":id"- ],- "query": [- {- "key": "force_sync",- "value": "true"- }- ],- "variable": [- {- "key": "id",- "value": "{{payment_id}}",- "description": "(Required) unique payment id"- }- ]- },- "description": "To retrieve the properties of a Payment. This may be used to get the status of a previously initiated payment or next action for an ongoing payment"-}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/response.jsondeleted file mode 100644index fe51488c70..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve-copy/response.json+++ /dev/null@@ -1 +0,0 @@-[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/.event.meta.jsondeleted file mode 100644index 688c85746e..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/.event.meta.json+++ /dev/null@@ -1,5 +0,0 @@-{- "eventOrder": [- "event.test.js"- ]-}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/request.jsondeleted file mode 100644index b9ebc1be4a..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/request.json+++ /dev/null@@ -1,33 +0,0 @@-{- "method": "GET",- "header": [- {- "key": "Accept",- "value": "application/json"- }- ],- "url": {- "raw": "{{baseUrl}}/payments/:id?force_sync=true",- "host": [- "{{baseUrl}}"- ],- "path": [- "payments",- ":id"- ],- "query": [- {- "key": "force_sync",- "value": "true"- }- ],- "variable": [- {- "key": "id",- "value": "{{payment_id}}",- "description": "(Required) unique payment id"- }- ]- },- "description": "To retrieve the properties of a Payment. This may be used to get the status of a previously initiated payment or next action for an ongoing payment"-}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/response.jsondeleted file mode 100644index fe51488c70..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Payments - Retrieve/response.json+++ /dev/null@@ -1 +0,0 @@-[]diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/.event.meta.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/.event.meta.jsondeleted file mode 100644index 688c85746e..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/.event.meta.json+++ /dev/null@@ -1,5 +0,0 @@-{- "eventOrder": [- "event.test.js"- ]-}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/event.test.js b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/event.test.jsdeleted file mode 100644index e2ddde7136..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/event.test.js+++ /dev/null@@ -1,95 +0,0 @@-// Validate status 2xx-pm.test("[POST]::/payments - Status code is 2xx", function () {- pm.response.to.be.success;-});--// Validate if response header has matching content-type-pm.test("[POST]::/payments - Content-Type is application/json", function () {- pm.expect(pm.response.headers.get("Content-Type")).to.include(- "application/json",- );-});--// Validate if response has JSON Body-pm.test("[POST]::/payments - Response has JSON Body", function () {- pm.response.to.have.jsonBody();-});--// 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(- "- use {{payment_id}} as collection variable for value",- jsonData.payment_id,- );-} else {- console.log(- "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",- );-}--// pm.collectionVariables - Set mandate_id as variable for jsonData.mandate_id-if (jsonData?.mandate_id) {- pm.collectionVariables.set("mandate_id", jsonData.mandate_id);- console.log(- "- use {{mandate_id}} as collection variable for value",- jsonData.mandate_id,- );-} else {- console.log(- "INFO - Unable to assign variable {{mandate_id}}, as jsonData.mandate_id is undefined.",- );-}--// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret-if (jsonData?.client_secret) {- pm.collectionVariables.set("client_secret", jsonData.client_secret);- console.log(- "- use {{client_secret}} as collection variable for value",- jsonData.client_secret,- );-} else {- console.log(- "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",- );-}--// Response body should have value "succeeded" for "status"-if (jsonData?.status) {- pm.test(- "[POST]::/payments - Content check if value for 'status' matches 'succeeded'",- function () {- pm.expect(jsonData.status).to.eql("succeeded");- },- );-}--// Response body should have "mandate_id"-pm.test(- "[POST]::/payments - Content check if 'mandate_id' exists",- function () {- pm.expect(typeof jsonData.mandate_id !== "undefined").to.be.true;- },-);--// Response body should have "mandate_data"-pm.test(- "[POST]::/payments - Content check if 'mandate_data' exists",- function () {- pm.expect(typeof jsonData.mandate_data !== "undefined").to.be.true;- },-);--// Response body should have "payment_method_data"-pm.test(- "[POST]::/payments - Content check if 'payment_method_data' exists",- function () {- pm.expect(typeof jsonData.payment_method_data !== "undefined").to.be.true;- },-);diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/request.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/request.jsondeleted file mode 100644index 0ae243421f..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/request.json+++ /dev/null@@ -1,77 +0,0 @@-{- "method": "POST",- "header": [- {- "key": "Content-Type",- "value": "application/json"- },- {- "key": "Accept",- "value": "application/json"- }- ],- "body": {- "mode": "raw",- "options": {- "raw": {- "language": "json"- }- },- "raw_json_formatted": {- "amount": 6540,- "currency": "USD",- "confirm": true,- "capture_method": "automatic",- "capture_on": "2022-09-10T10:11:12Z",- "amount_to_capture": 6540,- "customer_id": "{{customer_id}}",- "email": "[email protected]",- "name": "John Doe",- "phone": "999999999",- "phone_country_code": "+65",- "description": "Its my first payment request",- "authentication_type": "no_three_ds",- "return_url": "https://duck.com",- "mandate_id": "{{mandate_id}}",- "off_session": true,- "shipping": {- "address": {- "line1": "1467",- "line2": "Harrison Street",- "line3": "Harrison Street",- "city": "San Fransico",- "state": "California",- "zip": "94122",- "country": "US",- "first_name": "likhin",- "last_name": "bopanna"- }- },- "billing": {- "address": {- "line1": "1467",- "line2": "Harrison Street",- "line3": "Harrison Street",- "city": "San Fransico",- "state": "California",- "zip": "94122",- "country": "US",- "first_name": "likhin",- "last_name": "bopanna"- }- },- "statement_descriptor_name": "joseph",- "statement_descriptor_suffix": "JS"- }- },- "url": {- "raw": "{{baseUrl}}/payments",- "host": [- "{{baseUrl}}"- ],- "path": [- "payments"- ]- },- "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"-}diff --git a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/response.json b/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/response.jsondeleted file mode 100644index fe51488c70..0000000000--- a/postman/collection-dir/cybersource/Flow Testcases/Happy Cases/Scenario21-Create a mandate without customer acceptance/Recurring Payments - Create/response.json+++ /dev/null@@ -1 +0,0 @@-[]