PaymentRequest Sample
Available in Chrome 53+ |
View on GitHub |
Browse Samples
Background
PaymentRequest lets
you accept payment from different payment methods.
- Credit cards - a sample that accepts credit
card payments and does not request shipping information.
- Android Pay - a sample that accepts Android Pay
payments and does not request shipping information.
- Free shipping - a sample that accepts credit
card payments and provides free shipping worldwide.
- Shipping options - a sample that accepts
credit card payments and provides a couple of shipping options regardless of
shipping address.
- Dynamic shipping - a sample that accepts
credit card payments and varies the availability and price of shipping
options depending on the shipping address.
- Contact info - a sample that accepts credit
card payments and requests user's contact information: name, phone number,
and email address.
- Can make payment - a sample that accepts
both Android Pay and credit card payments and checks whether the browser can
make payment.
- Server side - sample that
demonstrates server-side calculation of shipping price and processing
transactions through a payment service provider.