This sample site demonstrates the use of Payment Request API.
Note: This is only a simulation. No actual purchase will ever take place. Your credit card will be not charged.
Example #1
The simplest possible example: no shipping information, accept all credit cards, etc.
Example #2
This example demonstrates a few customization to the payment method:
- The breakdown of the total amount is displayed.
- Only the following credit cards are accepted: Discover, Visa, or Mastercard.
- Two shipping options are available: Standard and Express.
Sorry, your web browser still does not support Payment Request API. Try again using Google Chrome, Opera, or Samsung Internet browser on Android or Microsoft Edge browser on Windows 10.
What is Payment Request API?
From its abstract:
This specification 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.
To learn more, please read the official specification at http://www.w3.org/TR/payment-request/.