How Payments Work With Autoship Cloud
Payments are made each time a Scheduled Order is processed. While the actual payment processing is ultimately handled by Autoship Cloud's hosted service, QPilot and the payment gateway that each payment method is associated with, there are key features in WooCommerce that Autoship Cloud supports to ensure a great customer experience.
WooCommerce Payment Features Important to Autoship Cloud
- Saved Payments / Tokenization at Checkout
- Each payment gateway that is supported by Autoship Cloud must have a WooCommerce plugin that enables the creation of saved payment methods.
- For supported payment plugins, Autoship Cloud will enforce logic during WooCommerce Checkout that requires that any customer purchasing 1 or more products selected for Autoship save their payment method at checkout.
- Manage Payment Methods in My Account
- Most of the plugins that we support will also include methods that enable customers to add and delete payment methods from within My Account
- This ensures that customers understand how to manage their saved payment methods and makes resolving issues with existing payment methods easy for customers to understand
How Customers Create and Manage Saved Payment Methods
Customers have 2 ways to create and manage saved payment methods in WooCommerce:
- By opting to save a payment method at Checkout (enforced by Autoship Cloud when a product selected for Autoship is in the cart)
- By logging into My Account and visiting Payment Methods
How Customers Apply Payment Methods to their Scheduled Order(s)
Autoship Cloud enables customers to apply saved payment methods to Scheduled Orders the following ways:
1. My Account > Scheduled Orders: Selecting/Changing the payment method by updating a Scheduled Order
2. My Account > Payment Methods: Selecting a link/button that applies a payment method to their Scheduled Order(s)
In the following screen capture, a customer logs into My Account, adds a new payment method, applies it to all of their Scheduled Orders and resumes their Paused Scheduled Order.
How Merchants Manage Saved Payment Methods
While payment methods are usually managed by the customer themselves, merchants have several ways to help their customers manage their saved payment methods:
- Directly in the Payment Gateway
- Merchants can always view and manage saved payments by logging into their Payment Gateway
- Editing a Scheduled Order
- WP-Admin > Autoship Cloud > Scheduled Orders: Merchants can make changes to payment methods by Editing the Scheduled Order
- Editing a Customer
- WP-Admin > Autoship Cloud > Customers: Merchants can add and remove existing saved payment methods to/from a customer's Scheduled Ordes
How a Merchant Adds or Removes a Saved Payment Method for an Autoship Cloud Customer:
- In the Wordpress Admin, visit WP-Admin > Autoship Cloud > Customers
- Find the Customer that you want to add or remove a payment method for and select "edit"
- Scroll down to the "Payment Methods" section of the Edit Customer view to Add or Remove a payment method
How Payment Processing Works for Autoship Scheduled Orders
Autoship Cloud's hosted service, QPilot, integrates directly with your payment gateway to process Autoship Scheduled Orders. This enables QPilot to manage and process payment methods directly with your payment gateway so that WooCommerce Orders created from processing an Autoship Scheduled Order include payment information.
How a payment is processed for an Autoship Scheduled Order:
- When a Scheduled Order starts processing, QPilot creates an Order in your WooCommerce Store via the REST API
- This produces an Order in WooCommerce with the status "Pending Payment"
- Your WooCommerce Store sends the Order data back to QPilot including any tax rates that your WooCommerce Store requires
- QPilot sends the complete Order details to the Payment Gateway associated with the Payment Method on the Scheduled Order
- The Payment Gateway responds to QPilot with the result; basically a "Success" or "Declined" response.
- If the payment is successful, QPilot updates the Order in your WooCommerce Store with the payment details and the Order Status changes from "Pending Payment" to "Processing". The Scheduled Order status remains "Active" and the Scheduled Order data is updated to reflect a new Next Occurrence Date, cycle count and Lifetime Value (LTV).
- In the case of "Authorize Only" transactions, the status is usually changed to "On Hold"
- If the payment is unsuccessful (a "Decline"), QPilot does not update the Order in your WooCommerce Store and sets the status of the Scheduled Order to "Failed". The reason for the failure is recorded and communicated to the merchant on reports (like the Autoship Cloud > Dashboard) and to the QPilot Site Contacts via email.
For more details on how Autoship Orders are processed see How Autoship Orders are Processed