Re: [w3c/webpayments-method-identifiers] How should we address payment method manifest files? (#19)

I looked into this and it appears to be quite easy. Here's how you do it in Node.js:
```javascript
app.head('/bobpay', function(req, res) {
  res.status(200).links({
    'payment-method-manifest': 'payment-manifest.json',
  }).end();
});
```
And here's PHP:
```php
<?php
header("Link: <payment-manifest.json>; rel=\"payment-method-manifest\"");
?>
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webpayments-method-identifiers/issues/19#issuecomment-274484201

Received on Monday, 23 January 2017 13:13:03 UTC