Empowering payment apps with Web Payments

One of the key ecosystem drivers for the web are payments. With secure,
seamless, and flexible payment systems, the web can become a sustainable and
profitable platform. The Web Payments standards have the potential to be a key
building block that will…


This content originally appeared on web.dev and was authored by Eiji Kitamura

One of the key ecosystem drivers for the web are payments. With secure, seamless, and flexible payment systems, the web can become a sustainable and profitable platform. The Web Payments standards have the potential to be a key building block that will enable seamless integration of payment solutions into merchant checkout flows.

What is Web Payments?

Web Payments is a series of new standardized payment APIs available in modern browsers, including Payment Request API, Payment Handler API and a few others. These new browser primitives simplify online payments and enable payment apps to integrate with browsers easier than ever.

The standards are flexible; they work with various types of payment systems and are intended to work on any browser on any device, payment method, or payment service provider. This flexibility enables development simplicity, deployment consistency, and future compatibility with emerging payment technologies.

Research shows that long checkout flows lead to cart abandonment. With Web Payments, checkout flow is simplified to a few taps instead of manual entry of billing data for every purchase. See a demo below of how Google Pay leverages Web Payments to build a seamless flow. The same can be achieved by any other payment app:

Checkout flow with Google Pay and Web Payments..
  1. The customer goes to checkout and presses the GPay button.

  2. The Google Pay app launches in front of the merchant website.

  3. The customer confirms payment in the Google Pay app after examining the details.

  4. The merchant verifies the payment and the purchase is approved.

Browser support

Web Payments consists of a few different pieces of technologies and the support status depends on the browser.

Chromium Safari Firefox
Desktop Android iOS Desktop Mobile
Payment Request API Under active development
Payment Handler API Under active development
iOS/Android payment app * ✔** ✔**

*Chrome is considering making built-in payment apps available on iOS.

**Safari supports Apple Pay but no third party payment apps.

The benefits of integrating Web Payments in a payment app

By integrating with Web Payments, payment apps can provide better user experience to customers, have better developer experience, and stricter security.

Better user experience

  • In-context payments: Payments are made in modals, in context of the merchant website, without redirects or pop-up windows.

  • Faster checkout: Customers can save their payment details securely in their browser or a payment app, ready to be used on any supporting merchant site.

  • Streamlined purchase experience: After completing (or aborting) the payment, the customer is on the merchant website exactly where they left off.

Better developer experience

  • Easy integration: Web Payments can be extended from an existing platform-specific payment app or a web-based payment app.

  • Low integration cost: Merchants can integrate Web Payments with JavaScript and basic level server-side integration.

  • Standards: The protocol and data format for exchanging information with merchants is standardized and doesn't require deep integration.

  • Dynamic price updates: Merchants can dynamically change the shipping cost based on the shipping address selected in the payment app, without deep integration.

Stricter security

  • Sideloading prevention when invoking platform-specific payment apps.

  • Designed with upcoming security and privacy paradigms in mind.

Using Web Payments also enables payment apps to bring any kind of payment method to the web such as e-money, cryptocurrency, bank transfers, and more. Web Payments is designed with sustainability in mind and doesn't put any restrictions on payment processing and payment methods.

Comparing Web Payments to other approaches

Consider the existing approaches to integrating payments on the web:

  • iframes: Using JavaScript to inject the payment handler's website in an iframe and collect the customer's payment credential through a form.

  • Pop-ups: Using JavaScript to open a pop-up window and collect the customer's payment credentials, either through a form or by having the customer authenticate and select a payment credential.

  • Redirects: Merchant redirects the customer to a payment handler's website and lets the customer authenticate and select payment credentials. The redirect URL is communicated via a server.

  • OAuth: Merchant lets the customer authenticate and authorize with a payment handler's identity via OAuth, select a payment method, shipping address etc through in-context iframe UI.

Here's how they compare to Web Payments:

Web Payments iframe Popup Redirect OAuth
In-context payments ✔*
Dynamic price updates
Streamlined purchase experience
Native app integration
Low integration cost
Standards

*Redirecting to a platform-specific payment app can be done in-context with the merchant website though redirecting to another website completely loses the context.

Integrating Web Payments in existing apps

You can integrate Web Payments in both platform-specific and web-based payment apps: if the platform-specific payment app is not installed, the web-based payment app can be used as a fallback. Customers and merchants can seamlessly send and receive payments through a payment method of their choice, depending on the environment.

Platform-specific payment apps

  • Ideal for payment apps that already have a large install base and want to give existing users a consistent experience on the web.

  • Unlike Android's "Intent" feature, Web Payments performs signature verification before running the payment app which makes malicious payment apps impossible to be sideloaded.

In the video above, Google Pay is a platform-specific payment app.

Web based payment apps

  • More future proof: typical payment app techniques like redirects or pop-ups are based on third party cookies that may become obsolete. While it's still hard to foresee the consequences, Web Payments look to the web with better privacy and a world without third party cookies.

  • The web-based route is ideal for web services that have a large number of customers with their card on file.

Checkout flow with a web-based payment app.

How does merchant adoption work?

For a payment app to be available on a merchant, the merchant needs to explicitly adopt it. Technically speaking, the merchant has to specify the payment app's identifier (payment method identifier) and use the Payment Request API with it.

We suggest that you provide good documentation in integration guides and SDKs or libraries to facilitate integration. For example, Google Pay provides a developer's guide.

Working with payment gateways is also a good option as they can help scale your outreach as well.

How much does it cost?

Web Payments is all about standard technology in the browser. Payment apps adopting it nor activating it on the browser won't charge them any fees by itself.


This content originally appeared on web.dev and was authored by Eiji Kitamura


Print Share Comment Cite Upload Translate Updates
APA

Eiji Kitamura | Sciencx (2020-05-25T00:00:00+00:00) Empowering payment apps with Web Payments. Retrieved from https://www.scien.cx/2020/05/25/empowering-payment-apps-with-web-payments/

MLA
" » Empowering payment apps with Web Payments." Eiji Kitamura | Sciencx - Monday May 25, 2020, https://www.scien.cx/2020/05/25/empowering-payment-apps-with-web-payments/
HARVARD
Eiji Kitamura | Sciencx Monday May 25, 2020 » Empowering payment apps with Web Payments., viewed ,<https://www.scien.cx/2020/05/25/empowering-payment-apps-with-web-payments/>
VANCOUVER
Eiji Kitamura | Sciencx - » Empowering payment apps with Web Payments. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2020/05/25/empowering-payment-apps-with-web-payments/
CHICAGO
" » Empowering payment apps with Web Payments." Eiji Kitamura | Sciencx - Accessed . https://www.scien.cx/2020/05/25/empowering-payment-apps-with-web-payments/
IEEE
" » Empowering payment apps with Web Payments." Eiji Kitamura | Sciencx [Online]. Available: https://www.scien.cx/2020/05/25/empowering-payment-apps-with-web-payments/. [Accessed: ]
rf:citation
» Empowering payment apps with Web Payments | Eiji Kitamura | Sciencx | https://www.scien.cx/2020/05/25/empowering-payment-apps-with-web-payments/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.