Skip to content

Commit

Permalink
Removeprofileid
Browse files Browse the repository at this point in the history
  • Loading branch information
likhinbopanna committed Nov 5, 2023
1 parent 259b33e commit 4cf1d5c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions postman/collection-dir/paypal/event.prerequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ if (isPaymentCreation) {
try {
const request = JSON.parse(pm.request.body.toJSON().raw);

// Attach profile_id
const profile_id = isPaymentCreation
? pm.collectionVariables.get("payment_profile_id")
: pm.collectionVariables.get("payout_profile_id");
request["profile_id"] = profile_id;

// Attach routing
const routing = { type: "single", data: "paypal" };
request["routing"] = routing;
Expand All @@ -27,7 +21,7 @@ if (isPaymentCreation) {
};
pm.request.body.update(updatedRequest);
} catch (error) {
console.error("Failed to inject profile_id in the request");
console.error("Failed to inject routing in the request");
console.error(error);
}
}

0 comments on commit 4cf1d5c

Please sign in to comment.