Skip to content

Commit

Permalink
refactor(apple pay session): remove unused headers from demo response
Browse files Browse the repository at this point in the history
  • Loading branch information
ehrdi committed Aug 5, 2024
1 parent 45e0e51 commit 8180fe8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions applepay-demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,10 @@ app.post('/process-payment', async (req, res) => {
console.log('Billing contact:', req.body.billingContact);
console.log('Shipping contact:', req.body.shippingContact);
const body = req.body;
const headers = req.headers;

// Process the payment with Payone here

res.status(200).send({ success: true, body, headers });
res.status(200).send({ success: true, body });
});

app.listen(80, () => {
Expand Down

0 comments on commit 8180fe8

Please sign in to comment.