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): Added address update test cases (#2555)
likhinbopanna8a396a224d0d
diff --git a/postman/collection-dir/stripe/.info.json b/postman/collection-dir/stripe/.info.jsonindex 4d935562e9..876b726299 100644--- a/postman/collection-dir/stripe/.info.json+++ b/postman/collection-dir/stripe/.info.json@@ -1,9 +1,9 @@{"info": {- "_postman_id": "8690e6f5-b693-42f3-a9f5-a1492faecdd6",- "name": "stripe",+ "_postman_id": "a553df38-fa33-4522-b029-1cd32821730e",+ "name": "Stripe Postman Collection","description": "## Get started\n\nJuspay Router provides a collection of APIs that enable you to process and manage payments. Our APIs accept and return JSON in the HTTP body, and return standard HTTP response codes. \nYou can consume the APIs directly using your favorite HTTP/REST library. \nWe have a testing environment referred to \"sandbox\", which you can setup to test API calls without affecting production data.\n\n### Base URLs\n\nUse the following base URLs when making requests to the APIs:\n\n| Environment | Base URL |\n| --- | --- |\n| Sandbox | [https://sandbox.hyperswitch.io](https://sandbox.hyperswitch.io) |\n| Production | [https://router.juspay.io](https://router.juspay.io) |\n\n# Authentication\n\nWhen you sign up for an account, you are given a secret key (also referred as api-key). You may authenticate all API requests with Juspay server by providing the appropriate key in the request Authorization header. \nNever share your secret api keys. Keep them guarded and secure.\n\nContact Support: \nName: Juspay Support \nEmail: [[email protected]](mailto:[email protected])","schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",- "_exporter_id": "25737662"+ "_exporter_id": "24206034"}}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/.meta.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/.meta.jsonindex e2ba5cabc4..62945fedcf 100644--- a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/.meta.json+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/.meta.json@@ -20,6 +20,8 @@"Scenario18-Bank Redirect-giropay","Scenario19-Bank Transfer-ach","Scenario19-Bank Debit-ach",- "Scenario22-Wallet-Wechatpay"+ "Scenario22-Wallet-Wechatpay",+ "Scenario22- Update address and List Payment method",+ "Scenario23- Update Amount"]}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/.meta.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/.meta.jsonnew file mode 100644index 0000000000..cb7836d08a--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/.meta.json@@ -0,0 +1,10 @@+{+ "childrenOrder": [+ "Payments - Create",+ "List Payment Methods for a Merchant",+ "Payments - Update",+ "List Payment Methods for a Merchant-copy",+ "Payments - Confirm",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant-copy/.event.meta.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant-copy/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant-copy/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant-copy/event.test.js b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant-copy/event.test.jsnew file mode 100644index 0000000000..df718ec2c6--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant-copy/event.test.js@@ -0,0 +1,37 @@+// Validate status 2xx+pm.test("[GET]::/payment_methods/:merchant_id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payment_methods/:merchant_id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include("application/json");+});+++// Parse the response body as JSON+var responseBody = pm.response.json();++// Check if "payment_methods" array contains a "payment_method" with the value "card"+pm.test("[GET]::/payment_methods/:merchant_id -Content Check if payment_method matches 'card'", function () {+ var paymentMethods = responseBody.payment_methods;+ var cardPaymentMethod = paymentMethods.find(function (method) {+ return method.payment_method == "card";+ });+});++// Check if "payment_methods" array contains a "payment_method" with the value "ideal"+pm.test("[GET]::/payment_methods/:merchant_id - Content Check if payment_method matches 'ideal'", function () {+ var paymentMethods = responseBody.payment_methods;+ var cardPaymentMethod = paymentMethods.find(function (method) {+ return method.payment_method == "ideal";+ });+});++// Check if "payment_methods" array contains a "payment_method" with the value "bank_redirect"+pm.test("[GET]::/payment_methods/:merchant_id -Content Check if payment_method matches 'bank_redirect'", function () {+ var paymentMethods = responseBody.payment_methods;+ var cardPaymentMethod = paymentMethods.find(function (method) {+ return method.payment_method == "bank_redirect";+ });+});\ No newline at end of filediff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant-copy/request.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant-copy/request.jsonnew file mode 100644index 0000000000..060c693c7e--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant-copy/request.json@@ -0,0 +1,61 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ },+ {+ "key": "x-feature",+ "value": "router-custom",+ "type": "text",+ "disabled": true+ }+ ],+ "body": {+ "mode": "raw",+ "raw": "",+ "options": {+ "raw": {+ "language": "json"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/account/payment_methods?client_secret={{client_secret}}",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "account",+ "payment_methods"+ ],+ "query": [+ {+ "key": "client_secret",+ "value": "{{client_secret}}"+ }+ ]+ },+ "description": "To filter and list the applicable payment methods for a particular merchant id."+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant-copy/response.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant-copy/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant-copy/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant/.event.meta.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant/event.test.js b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant/event.test.jsnew file mode 100644index 0000000000..98006113bd--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant/event.test.js@@ -0,0 +1,51 @@+// Validate status 2xx+pm.test("[GET]::/payment_methods/:merchant_id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[GET]::/payment_methods/:merchant_id - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include("application/json");+});++// Parse the response body as JSON+var responseBody = pm.response.json();++// Check if "payment_methods" array contains a "payment_method" with the value "card"+pm.test("[GET]::/payment_methods/:merchant_id -Content Check if payment_method matches 'card'", function () {+ var paymentMethods = responseBody.payment_methods;+ var cardPaymentMethod = paymentMethods.find(function (method) {+ return method.payment_method == "card";+ });+});++// Check if "payment_methods" array contains a "payment_method" with the value "pay_later"+pm.test("[GET]::/payment_methods/:merchant_id -Content Check if payment_method matches 'pay_later'", function () {+ var paymentMethods = responseBody.payment_methods;+ var cardPaymentMethod = paymentMethods.find(function (method) {+ return method.payment_method == "pay_later";+ });+});+// Check if "payment_methods" array contains a "payment_method" with the value "wallet"+pm.test("[GET]::/payment_methods/:merchant_id -Content Check if payment_method matches 'wallet'", function () {+ var paymentMethods = responseBody.payment_methods;+ var cardPaymentMethod = paymentMethods.find(function (method) {+ return method.payment_method == "wallet";+ });+});++// Check if "payment_methods" array contains a "payment_method" with the value "bank_debit"+pm.test("[GET]::/payment_methods/:merchant_id -Content Check if payment_method matches 'bank_debit'", function () {+ var paymentMethods = responseBody.payment_methods;+ var cardPaymentMethod = paymentMethods.find(function (method) {+ return method.payment_method == "bank_debit";+ });+});++// Check if "payment_methods" array contains a "payment_method" with the value "bank_transfer"+pm.test("[GET]::/payment_methods/:merchant_id -Content Check if payment_method matches 'bank_transfer'", function () {+ var paymentMethods = responseBody.payment_methods;+ var cardPaymentMethod = paymentMethods.find(function (method) {+ return method.payment_method == "bank_transfer";+ });+});\ No newline at end of filediff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant/request.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant/request.jsonnew file mode 100644index 0000000000..060c693c7e--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant/request.json@@ -0,0 +1,61 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "GET",+ "header": [+ {+ "key": "Accept",+ "value": "application/json"+ },+ {+ "key": "x-feature",+ "value": "router-custom",+ "type": "text",+ "disabled": true+ }+ ],+ "body": {+ "mode": "raw",+ "raw": "",+ "options": {+ "raw": {+ "language": "json"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/account/payment_methods?client_secret={{client_secret}}",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "account",+ "payment_methods"+ ],+ "query": [+ {+ "key": "client_secret",+ "value": "{{client_secret}}"+ }+ ]+ },+ "description": "To filter and list the applicable payment methods for a particular merchant id."+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant/response.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/List Payment Methods for a Merchant/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Confirm/.event.meta.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Confirm/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Confirm/event.test.js b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Confirm/event.test.jsnew file mode 100644index 0000000000..49977a01ab--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Confirm/event.test.js@@ -0,0 +1,25 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/confirm - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments/:id/confirm - 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){}++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++//// Response body should have value "requires_customer_action" for "status"+if (jsonData?.status) {+pm.test("[POST]::/payments - Content check if value for 'status' matches 'requires_customer_action'", function() {+ pm.expect(jsonData.status).to.eql("requires_customer_action");+})};+diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Confirm/request.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Confirm/request.jsonnew file mode 100644index 0000000000..20b99223ac--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Confirm/request.json@@ -0,0 +1,109 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "client_secret": "{{client_secret}}",+ "payment_method": "bank_redirect",+ "payment_method_type": "ideal",+ "payment_method_data": {+ "bank_redirect": {+ "ideal": {+ "billing_details": {+ "billing_name": "Example",+ "email": "[email protected]"+ },+ "bank_name": "ing"+ }+ }+ },+ "mandate_data": {+ "customer_acceptance": {+ "acceptance_type": "offline",+ "accepted_at": "1963-05-03T04:07:52.723Z",+ "online": {+ "ip_address": "125.0.0.1",+ "user_agent": "amet irure esse"+ }+ },+ "mandate_type": {+ "multi_use": {+ "amount": 7000,+ "currency": "USD",+ "start_date": "2023-04-21T00:00:00Z",+ "end_date": "2023-05-21T00:00:00Z",+ "metadata": {+ "frequency": "13"+ }+ }+ }+ },+ "setup_future_usage": "off_session",+ "browser_info": {+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",+ "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",+ "language": "nl-NL",+ "color_depth": 24,+ "screen_height": 723,+ "screen_width": 1536,+ "time_zone": 0,+ "java_enabled": true,+ "java_script_enabled": true,+ "ip_address": "128.0.0.1"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/confirm",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}"+ }+ ]+ },+ "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Confirm/response.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Create/.event.meta.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Create/event.test.js b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Create/event.test.jsnew file mode 100644index 0000000000..f906d88101--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Create/event.test.js@@ -0,0 +1,56 @@+// 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.');+};++// pm.collectionVariables - Set customer_id as variable for jsonData.customer_id+if (jsonData?.customer_id) {+ pm.collectionVariables.set("customer_id", jsonData.customer_id);+ console.log("- use {{customer_id}} as collection variable for value",jsonData.customer_id);+} else {+ console.log('INFO - Unable to assign variable {{customer_id}}, as jsonData.customer_id is undefined.');+};+// Response body should have value "requires_payment_method" for "status"+if (jsonData?.status) {+pm.test("[POST]::/payments - Content check if value for 'status' matches 'requires_payment_method'", function() {+ pm.expect(jsonData.status).to.eql("requires_payment_method");+})};diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Create/request.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Create/request.jsonnew file mode 100644index 0000000000..785122a83c--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Create/request.json@@ -0,0 +1,82 @@+{+ "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": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "StripeCustomer",+ "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",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "sundari"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "sundari"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ },+ "routing": {+ "type": "single",+ "data": "stripe"+ }+ }+ },+ "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/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Create/response.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Retrieve/.event.meta.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Retrieve/event.test.js b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..cccd288c0c--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Retrieve/event.test.js@@ -0,0 +1,49 @@+// 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 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 "requires_customer_action" for "status"+if (jsonData?.status) {+pm.test("[POST]::/payments:id - Content check if value for 'status' matches 'requires_customer_action'", function() {+ pm.expect(jsonData.status).to.eql("requires_customer_action");+})};\ No newline at end of filediff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Retrieve/request.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "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/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Retrieve/response.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Update/.event.meta.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Update/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Update/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Update/event.test.js b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Update/event.test.jsnew file mode 100644index 0000000000..f6f4860c47--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Update/event.test.js@@ -0,0 +1,38 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/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("[POST]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});+++// Parse the JSON response+var jsonData = pm.response.json();++// Check if the 'currency' is equal to "EUR"+pm.test("[POST]::/payments/:id -Content Check if 'currency' matches 'EUR' ", function () {+ pm.expect(jsonData.currency).to.eql("EUR");+});++// Extract the "country" field from the JSON data+var country = jsonData.billing.address.country;++// Check if the country is "NL"+pm.test("[POST]::/payments/:id -Content Check if billing 'Country' matches NL (Netherlands)", function () {+ pm.expect(country).to.equal("NL");+});++var country1 = jsonData.shipping.address.country;++// Check if the country is "NL"+pm.test("[POST]::/payments/:id -Content Check if shipping 'Country' matches NL (Netherlands)", function () {+ pm.expect(country1).to.equal("NL");+});diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Update/request.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Update/request.jsonnew file mode 100644index 0000000000..da347e0d0b--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Update/request.json@@ -0,0 +1,75 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "currency": "EUR",+ "shipping": {+ "address": {+ "line1": "1468",+ "line2": "Koramangala ",+ "line3": "Koramangala ",+ "city": "Bangalore",+ "state": "Karnataka",+ "zip": "560065",+ "country": "NL",+ "first_name": "Preeetam",+ "last_name": "Rev"+ },+ "phone": {+ "number": "8796455689",+ "country_code": "+91"+ }+ },+ "billing": {+ "address": {+ "line1": "1468",+ "line2": "Koramangala ",+ "line3": "Koramangala ",+ "city": "Bangalore",+ "state": "Karnataka",+ "zip": "560065",+ "country": "NL",+ "first_name": "Preeetam",+ "last_name": "Rev"+ },+ "phone": {+ "number": "8796455689",+ "country_code": "+91"+ }+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}"+ }+ ]+ },+ "description": "To update the properties of a PaymentIntent object. This may include attaching a payment method, or attaching customer object or metadata fields after the Payment is created "+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Update/response.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Update/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update address and List Payment method/Payments - Update/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/.meta.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/.meta.jsonnew file mode 100644index 0000000000..3038a1f4dd--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/.meta.json@@ -0,0 +1,8 @@+{+ "childrenOrder": [+ "Payments - Create",+ "Payments - Update",+ "Payments - Confirm",+ "Payments - Retrieve"+ ]+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Confirm/.event.meta.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Confirm/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Confirm/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Confirm/event.test.js b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Confirm/event.test.jsnew file mode 100644index 0000000000..a089978fcf--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Confirm/event.test.js@@ -0,0 +1,36 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id/confirm - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments/:id/confirm - 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){}++// Validate if response has JSON Body+pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++//// 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");+})};+++// Check if the 'amount' is equal to "1000"+pm.test("[POST]::/payments/:id -Content Check if 'amount' matches '1000' ", function () {+ pm.expect(jsonData.amount).to.eql(1000);+});++//// Response body should have value "amount_received" for "1000"+if (jsonData?.amount_received) {+pm.test("[POST]::/payments - Content check if value for 'amount_received' matches '1000'", function() {+ pm.expect(jsonData.amount_received).to.eql(1000);+})};diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Confirm/request.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Confirm/request.jsonnew file mode 100644index 0000000000..4d4486b1d4--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Confirm/request.json@@ -0,0 +1,98 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{publishable_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ },+ {+ "key": "x-feature",+ "value": "router-custom",+ "type": "text",+ "disabled": true+ },+ {+ "key": "publishable_key",+ "value": "",+ "type": "text",+ "disabled": true+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "client_secret": "{{client_secret}}",+ "payment_method": "card",+ "payment_method_type": "debit",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "03",+ "card_exp_year": "2030",+ "card_holder_name": "joseph Doe",+ "card_cvc": "737"+ }+ },+ "setup_future_usage": "off_session",+ "browser_info": {+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",+ "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",+ "language": "nl-NL",+ "color_depth": 24,+ "screen_height": 723,+ "screen_width": 1536,+ "time_zone": 0,+ "java_enabled": true,+ "java_script_enabled": true,+ "ip_address": "128.0.0.1"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id/confirm",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id",+ "confirm"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}"+ }+ ]+ },+ "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Confirm/response.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Confirm/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Confirm/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Create/.event.meta.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Create/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Create/event.test.js b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Create/event.test.jsnew file mode 100644index 0000000000..f906d88101--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Create/event.test.js@@ -0,0 +1,56 @@+// 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.');+};++// pm.collectionVariables - Set customer_id as variable for jsonData.customer_id+if (jsonData?.customer_id) {+ pm.collectionVariables.set("customer_id", jsonData.customer_id);+ console.log("- use {{customer_id}} as collection variable for value",jsonData.customer_id);+} else {+ console.log('INFO - Unable to assign variable {{customer_id}}, as jsonData.customer_id is undefined.');+};+// Response body should have value "requires_payment_method" for "status"+if (jsonData?.status) {+pm.test("[POST]::/payments - Content check if value for 'status' matches 'requires_payment_method'", function() {+ pm.expect(jsonData.status).to.eql("requires_payment_method");+})};diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Create/request.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Create/request.jsonnew file mode 100644index 0000000000..785122a83c--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Create/request.json@@ -0,0 +1,82 @@+{+ "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": false,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "StripeCustomer",+ "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",+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "sundari"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "sundari"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ },+ "routing": {+ "type": "single",+ "data": "stripe"+ }+ }+ },+ "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/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Create/response.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Create/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Retrieve/.event.meta.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Retrieve/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Retrieve/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Retrieve/event.test.js b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Retrieve/event.test.jsnew file mode 100644index 0000000000..af4217f774--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Retrieve/event.test.js@@ -0,0 +1,61 @@+// 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 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");+})};+++// Check if the 'amount' is equal to "1000"+pm.test("[POST]::/payments/:id -Content Check if 'amount' matches '1000' ", function () {+ pm.expect(jsonData.amount).to.eql(1000);+});++//// Response body should have value "amount_received" for "1000"+if (jsonData?.amount_received) {+pm.test("[POST]::/payments - Content check if value for 'amount_received' matches '1000'", function() {+ pm.expect(jsonData.amount_received).to.eql(1000);+})};diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Retrieve/request.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Retrieve/request.jsonnew file mode 100644index 0000000000..b9ebc1be4a--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Retrieve/request.json@@ -0,0 +1,33 @@+{+ "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/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Retrieve/response.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Retrieve/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Retrieve/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Update/.event.meta.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Update/.event.meta.jsonnew file mode 100644index 0000000000..688c85746e--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Update/.event.meta.json@@ -0,0 +1,5 @@+{+ "eventOrder": [+ "event.test.js"+ ]+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Update/event.test.js b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Update/event.test.jsnew file mode 100644index 0000000000..d4d541fea8--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Update/event.test.js@@ -0,0 +1,25 @@+// Validate status 2xx+pm.test("[POST]::/payments/:id - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/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("[POST]::/payments/:id - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});+++// Parse the JSON response+var jsonData = pm.response.json();++// Check if the 'amount' is equal to "1000"+pm.test("[POST]::/payments/:id -Content Check if 'amount' matches '1000' ", function () {+ pm.expect(jsonData.amount).to.eql(1000);+});++diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Update/request.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Update/request.jsonnew file mode 100644index 0000000000..813d6dc24a--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Update/request.json@@ -0,0 +1,41 @@+{+ "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": 1000+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments/:id",+ "host": [+ "{{baseUrl}}"+ ],+ "path": [+ "payments",+ ":id"+ ],+ "variable": [+ {+ "key": "id",+ "value": "{{payment_id}}"+ }+ ]+ },+ "description": "To update the properties of a PaymentIntent object. This may include attaching a payment method, or attaching customer object or metadata fields after the Payment is created "+}diff --git a/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Update/response.json b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Update/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23- Update Amount/Payments - Update/response.json@@ -0,0 +1 @@+[]