<!DOCTYPE html><htmllang="en-US"><head><title>Web Payment APIs</title><metaproperty="og:title"content="Web Payment APIs"><metaname="description"content="A short talk on Web Payment APIs"><metaproperty="og:description"content="A short talk on Web Payment APIs"><linkrel="canonical"href="https://captnemo.in/talks/webpayments/"><metaproperty="og:url"content="https://captnemo.in/talks/webpayments/"><metacharset="UTF-8"><metaname="viewport"content="width=device-width,height=device-height,initial-scale=1.0"><metaname="apple-mobile-web-app-capable"content="yes"><metahttp-equiv="X-UA-Compatible"content="ie=edge"><metaproperty="og:type"content="website"><metaname="twitter:card"content="summary"><style>.bespoke-marp-note,.bespoke-marp-osc,.bespoke-progress-parent{display:none;transition:none}@mediascreen{body[data-bespoke-view=""].bespoke-marp-parent>.bespoke-marp-osc>button,body[data-bespoke-view=next].bespoke-marp-parent>.bespoke-marp-osc>button,body[data-bespoke-view=presenter].bespoke-marp-presenter-container.bespoke-marp-presenter-info-containerbutton{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:0;color:inherit;cursor:pointer;font-size:inherit;opacity:.8;outline:none;padding:0;transition:opacity.2slinear;-webkit-tap-highlight-color:transparent}body[data-bespoke-view=""].bespoke-marp-parent>.bespoke-marp-osc>button:disabled,body[data-bespoke-view=next].bespoke-marp-parent>.bespoke-marp-osc>button:disabled,body[data-bespoke-view=presenter].bespoke-marp-presenter-container.bespoke-marp-presenter-info-containerbutton:disabled{cursor:not-allowed;opacity:.15!important}body[data-bespoke-view=""].bespoke-marp-parent>.bespoke-marp-osc>button:hover,body[data-bespoke-view=next].bespoke-marp-parent>.bespoke-marp-osc>button:hover,body[data-bespoke-view=presenter].bespoke-marp-presenter-container.bespoke-marp-presenter-info-containerbutton:hover{opacity:1}body[data-bespoke-view=""].bespoke-marp-parent>.bespoke-marp-osc>button:hover:active,body[data-bespoke-view=next].bespoke-marp-parent>.bespoke-marp-osc>button:hover:active,body[data-bespoke-view=presenter].bespoke-marp-presenter-container.bespoke-marp-presenter-info-containerbutton:hover:active{opacity:.6}body[data-bespoke-view=""].bespoke-marp-parent>.bespoke-marp-osc>button:hover:not(:disabled),body[data-bespoke-view=next].bespoke-marp-parent>.bespoke-marp-osc>button:hover:not(:disabled),body[data-bespoke-view=presenter].bespoke-marp-presenter-container.bespoke-marp-presenter-info-containerbutton:hover:not(:disabled){transition:none}body[data-bespoke-view=""].bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=prev],body[data-bespoke-view=next].bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=prev],body[data-bespoke-view=presenter].bespoke-marp-presenter-container.bespoke-marp-presenter-info-containerbutton.bespoke-marp-presenter-info-page-prev{background:transparenturl("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiNmZmYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSI1IiBkPSJNNjggOTBMMjggNTBsNDAtNDAiLz48L3N2Zz4=")no-repeat50%;background-size:contain;overflow:hidden;text-indent:100%;white-space:nowrap}body[data-bespoke-view=""].bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=next],body[data-bespoke-view=next].bespoke-marp-parent>.bespoke-marp-osc>button[data-bespoke-marp-osc=next],body[data-bespoke-view=presenter].bespoke-marp-presenter-container.bespoke-marp-presenter-info-containerbutton.bespoke-marp-presenter-info-page-next{background:transparenturl("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiNmZmYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSI1IiBkPSJNMzIgOTBsNDAtNDAtNDAtNDAiLz48L3N2Zz4=")no-repeat50%;background-size:contain;overflow:hidden;text-ind
<p>The goal is to create a safe, decentralized system and a set of open, patent and royalty-free specifications that allow people on the Web to send each other money as easily as they exchange instant messages and e-mail today.</p>
<p>Try to understand how we can complete a payment entirely from within your browser <em>without relying on any proprietary APIs</em> (as a processor/merchant), and yet <em>being compatible with any payment instrument</em>.</p>
<p>The <strong>payment method</strong>: the means that the payer uses to pay the payee (e.g., a basic card payment). They are uniquely identified via a <strong>Payment Method Identifier</strong> (PMI)</p>
<p>The <strong>payment method provider</strong> establishes the ecosystem to support that payment method.</p>
<p>The details of how to fulfill a payment request for a given payment method is an implementation detail of a <strong>payment handler</strong>, which is a Web application that can handle a request for payment on behalf of the user.</p>
<p>allows the curators of a defined payment method or owners of a proprietary payment method to authorize (via a manifest file) which payment handlers may be used to fulfill the payment method.</p>
</blockquote>
<p>humanized: defines the schema of a specific payment method. The one for <code>basic-card</code> is standardized in a <ahref="https://w3c.github.io/webpayments-methods-card/">specification already</a>.</p>
<p>A payment application hosted at either <code>alicepay.com</code>, <code>beta.alicepay.com</code>, or <code>bobpay.com</code> is now authorized for the payment method <code>https://alicepay.com</code>.</p>
</script></foreignObject></svg></div><divclass="bespoke-marp-note"data-index="2"tabindex="0"><p>Talk about all the innovations that have happened over the last 2 decades because of the internet and how none of them relate to money transfer (except for bitcoin)</p></div><divclass="bespoke-marp-note"data-index="5"tabindex="0"><p>: standardizes an API to allow merchants (i.e., Web sites selling physical or digital goods) to utilize one or more payment methods with minimal integration. User agents (e.g., browsers) facilitate the payment flow between merchant and user, mediating the user experience and providing consistency between different merchants and providers.</p><p>: defines the validation and (where applicable) registration of identifiers used for matching purposes by other W3C payments specifications.</p><p>:defines capabilities that enable Web applications to handle payment requests. The specification defines how Web-based payment handlers register their capabilities with the user agent, how the user agent communicates with them, and what information is exchanged. Note: Based on experience with the Payment Handler API, the Working Group is discussing creation of a new UI component where payments, authentication, and other activities can occur. This functionality would generalize some of the current payment-specific functionality of Payment Handler API.</p><p>: allows the curators of a defined payment method or owners of a proprietary payment method to authorize (via a manifest file) which payment handlers may be used to fulfill the payment method. The scope of this work extends to all types of payment handlers, including native mobile apps and Web apps.</p></div><script>!function(){"usestrict";vare=function(e,t){varn,r=1===(e.parent||e).nodeType?e.parent||e:document.querySelector(e.parent||e),s=[].filter.call("string"==typeofe.slides?r.querySelectorAll(e.slides):e.slides||r.children,(function(e){return"SCRIPT"!==e.nodeName})),a={},o=function(e,t){return(t=t||{}).index=s.indexOf(e),t.slide=e,t},i=function(e,t){a[e]=(a[e]||[]).filter((function(e){returne!==t}))},l=function(e,t){return(a[e]||[]).reduce((function(e,n){returne&&!1!==n(t)}),!0)},c=function(e,t){s[e]&&(n&&l("deactivate",o(n,t)),n=s[e],l("activate",o(n,t)))},d=function(e,t){varr=s.indexOf(n)+e;l(e>0?"next":"prev",o(n,t))&&c(r,t)},u={off:i,on:function(e,t){return(a[e]||(a[e]=[])).push(t),i.bind(null,e,t)},fire:l,slide:function(e,t){if(!arguments.length)returns.indexOf(n);l("slide",o(s[e],t))&&c(e,t)},next:d.bind(null,1),prev:d.bind(null,-1),parent:r,slides:s,destroy:function(e){l("destroy",o(n,e)),a={}}};return(t||[]).forEach((function(e){e(u)})),n||c(0),u};functiont(e){e.parent.classList.add("bespoke-marp-parent"),e.slides.map(e=>e.classList.add("bespoke-marp-slide")),e.on("activate",t=>{e.slides.map(e=>e.classList.remove("bespoke-marp-active")),t.slide.classList.add("bespoke-marp-active")})}functionn(e=2e3){returnt=>{letn;functionr(){n&&clearTimeout(n),n=setTimeout(()=>{t.parent.classList.add("bespoke-marp-inactive")},e),t.parent.classList.remove("bespoke-marp-inactive")}document.addEventListener("mousedown",r),document.addEventListener("mousemove",r),document.addEventListener("touchend",r),setTimeout(r,0)}}constr=["AUDIO","BUTTON","INPUT","SELECT","TEXTAREA","VIDEO"];functions(e){e.parent.addEventListener("keydown",e=>{if(!e.target)return;constt=e.target;(r.includes(t.nodeName)||"true"===t.contentEditable)&&e.stopPropagation()})}functiona(e){window.addEventListener("load",()=>{for(consttofe.slides){conste=t.querySelector("[data-marp-fitting]")?"":"hideable";t.setAttribute("data-bespoke-marp-load",e)}})}functiono(e){lett=0,n=0;Object.defineProperty(e,"fragments",{enumerable:!0,value:e.slides.map(e=>[null,...e.querySelectorAll("[data-marpit-fragment]")])});constr=r=>void0!==e.fragments[t][n+r],s=(r,s)=>{t=r,n=s,e.fragments.forEach((e,t)=>{e.forEach((e,n)=>{if(null==e)return;consta=t<r||t===r&&n<=s;e.setAttribute("data-bespoke-marp-fragment",a?"active":"inactive"),t===r&&n===s?e.setAttribute("data-bespoke-marp-current-fragmen