Skip to content

Commit

Permalink
Merge pull request #3887 from alphagov/pp-12853-new-changes-for-apple…
Browse files Browse the repository at this point in the history
…-pay-axios-saga

Pass cert and key to proxy agent for Apple Pay validation
  • Loading branch information
marcotranchino authored Aug 2, 2024
2 parents ca77f53 + a0fa342 commit f1df7ab
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ module.exports = async (req, res) => {
key: merchantIdentityVars.key
});

const proxyAgent = proxyUrl ? new HttpsProxyAgent(proxyUrl) : null
const proxyAgentOptions = {
cert: merchantIdentityVars.cert,
key: merchantIdentityVars.key
};

const proxyAgent = proxyUrl ? new HttpsProxyAgent(proxyUrl, proxyAgentOptions) : null;

if (proxyUrl) {
logger.info('Using proxy URL')
}
Expand Down

0 comments on commit f1df7ab

Please sign in to comment.