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
test(postman): update postman collection files
github-actionsd11e7fd5642e
diff --git a/postman/collection-json/paypal.postman_collection.json b/postman/collection-json/paypal.postman_collection.jsonindex 5a92253a9b..4849a27fe0 100644--- a/postman/collection-json/paypal.postman_collection.json+++ b/postman/collection-json/paypal.postman_collection.json@@ -4,7 +4,33 @@"listen": "prerequest","script": {"exec": [- ""+ "const path = pm.request.url.toString();",+ "const isPostRequest = pm.request.method.toString() === \"POST\";",+ "const isPaymentCreation = path.match(/\\/payments$/) && isPostRequest;",+ "",+ "if (isPaymentCreation) {",+ " try {",+ " const request = JSON.parse(pm.request.body.toJSON().raw);",+ "",+ " // Attach routing",+ " const routing = { type: \"single\", data: \"paypal\" };",+ " request[\"routing\"] = routing;",+ "",+ " let updatedRequest = {",+ " mode: \"raw\",",+ " raw: JSON.stringify(request),",+ " options: {",+ " raw: {",+ " language: \"json\",",+ " },",+ " },",+ " };",+ " pm.request.body.update(updatedRequest);",+ " } catch (error) {",+ " console.error(\"Failed to inject routing in the request\");",+ " console.error(error);",+ " }",+ "}"],"type": "text/javascript"}