Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Latest commit

 

History

History
56 lines (35 loc) · 2.44 KB

File metadata and controls

56 lines (35 loc) · 2.44 KB

📣 Announcement: New documentation location

The documentation for WooCommerce Blocks has moved to the WooCommerce monorepo.

Please refer to the documentation in the new location as the files in this repository will no longer be updated and the repository will be archived.


Payments

Table of Contents

Setup

The Checkout Block supports three methods of payments:

  • Check Payment, found in WooCommerce payment section.
  • Stripe Credit Card payments, provided by Stripe Gateway.
  • Express Payment methods, provided by Stripe Gateway.

To test Stripe and Express payment methods, you will need API keys, you can get them by creating a testing account in stripe.

Special Cases

To test Express payment methods there are some special requirements like

  • You need to be serving the website over https, try ephemeral websites.
  • You need to be from a supported country.
  • To test Apple Pay you will need to have an iOS or device.
  • To test Google Pay you will need to have Chrome installed and a payment method setup.
  • To test Microsoft Pay you will need to have Edge installed.
  • You will also need to be on a supported country, to better verify your compatibility visit this page. You should see if you're on a supported platform or not.

Unsupported

image.

What to test

If no payment method is set up:

  • An error will show up in the frontend, saying that no payment method is available.
  • In the editor, you will be prompted to set up a payment method.

If you have a payment method available:

  • You should be able to perform a successful checkout with Check payments.
  • You should be able to perform a successful checkout credit card payment using this cart 4242424242424242
  • You should be able to perform a failed checkout credit card payment using this cart 4000000000000002

Create Todo list