Web Payments SDK Overview
The following payment methods are available to your application to accept payment with the Web Payments SDK:
On this page
The SDK can be integrated with your payment page in as few as 10 lines of code to provide one of the available payment methods.
The Web Payments SDK was created to make integration with your web application simpler and provide better performance. The SDK provides the following advantages:
Granular configuration. You only need to write configuration code for the payment methods that your application accepts. Each payment method has its own objects with configuration options appropriate for the method.
Promise-based pattern. The async/await pattern is used in place of the callback pattern of earlier payment libraries. This pattern lets your application react to events in a more reasonable way with less code.
Automatic localization. The SDK determines the locale of the buyer's browser automatically. However, your application can override localization by setting a configuration option.
The Web Payments SDK produces payment tokens from any of the following payment methods:
Credit and debit payment cards
ACH bank transfer using Plaid for bank account authentication
The payment tokens produced by these payment methods share a common format and are all accepted by the Payments API as
source_id values. The server-side Payments API code that you write for one of these tokens works seamlessly for all the other methods. You can write unique client logic for each payment method, but you only need one payment process flow on the server.
The Web Payments SDK cannot be used with Internet Explorer 11.
The following topic shows how to add card payment logic to an example application: