Skip to content

Release testing instructions for the WooCommerce Stripe payment gateway 5.4.0

Kristófer Reykjalín edited this page Aug 10, 2021 · 5 revisions

Table of Contents

Ensure payment dialog won't ask for Shipping details when no Shipping Zones are defined

  1. Make sure Payment Request Buttons is enabled on Stripe. You can enable Payment Request Buttons in the WooCommerce > Settings > Payments > Stripe > Payment Request Buttons save settings.
image
  1. Go to WooCommerce > Settings > Shipping and make sure the Shipping zones section is empty.
Screen Shot 2021-08-03 at 12 01 57 AM
  1. Create a simple product. Add a price. Just make sure the product is not virtual.
  2. Navigate to the product page.
  3. Make sure the PRB is visible. Click PRB.
  4. Make sure the Payment modal (Google Pay or Apple Pay) does not ask for a Shipping Address.
Screen Shot 2021-08-03 at 12 06 10 AM

Ensure an order with a custom order status is updated properly during payment processing

Note: Webhooks must be configured correctly for the testing to work correctly.

Note: You must install the WooCommerce Blocks plugin for the Draft order status to be available.

  1. Make sure payments are captured immediately by going to WooCommerce > Settings > Payments > Stripe – Credit Card (Stripe), make sure Capture is toggled on, and click Save changes.
  2. Install and activate the Code Snippets plugin.
  3. Go to Snippets > Add new
  4. Copy the following snippet into the Code text area. You can choose any name you want.
function add_draft_to_allowed_payment_processing_statuses( $statuses ) {
	if ( ! in_array( 'checkout-draft', $statuses ) ) {
		$statuses[] = 'checkout-draft';
	}
	return $statuses;
}
add_filter( 'wc_stripe_allowed_payment_processing_statuses', 'add_draft_to_allowed_payment_processing_statuses' );
image
  1. Make sure Run snippet everywhere is toggled
  2. Click Save changes and activate
  3. Go to WooCommerce > Orders and click Add Order
  4. Set the order status to Draft
  5. Select the customer for your current account — or any account you have access to on your site. The customer details should be filled in automatically.
image
  1. Click Add item(s) followed by Add product(s) and add any product to the order.
image image
  1. Click Create
  2. Click Customer payment page
  3. Pay for the order with a 3DS card: 4000000000003220
  4. Go back to the order details page
  5. Make sure the order status has changed to Processing (or completed for digital orders).
  6. Turn off immediate payment capture by going to WooCommerce > Settings > Payments > Stripe – Credit Card (Stripe), make sure Capture is toggled off, and click Save changes.
  7. Repeat steps 2-14 (create a draft order, pay through the Customer payment page page)
  8. Make sure the order status has changed to On hold.
  9. Make sure there is a note that starts with Stripe charge authorized (Charge ID: ch_xyz).
  10. Change the payment status to Processing
  11. Make sure a note has appeared that says Stripe charge complete (Charge ID: ch_3JKqQ7KFePZ3MR450VtiEw3i)

Repeat these testing instructions with the following conditions:

  1. Use a non-3DS card and make sure everything behaves the same.
  2. Add a product to the draft order that has stock and make sure the stock management behaves in the following ways:
    • Stock is not reduced when the order is created (after step 11)
    • (For immediate capture) stock is reduced after payment (after step 13)
    • (For manual capture) stock is reduced after authorization (after step 20)
    • Tip: To add stock to a product go to Products, select any product, go to Inventory, toggle Manage stock? on, change Stock quantity to a positive number, and click Update.
Clone this wiki locally