When Subscribe Pro attempts to place an order via the Magento 2 API, if the order attempt fails an error message will be returned. Subscribe Pro classifies error messages based on the failure reason.
|Error Class||Description||Steps to Simulate Error|
|Technology||Can be caused by a code error in the Magento 2 codebase, by Subscribe Pro being unable to connect to the Magento 2 API, or by the Magento 2 API not returning a valid response.||This can be simulated by causing the connection to Magento 2 to fail. For instance, enable HTTP Authentication on the API server or add a firewall rule preventing Subscribe Pro from connecting.|
|eCommerce Platform||Can be caused by issues originating from Magento 2, such as an invalid shipping method, a missing customer, or product SKU not existing in the Magento 2 catalog.|
|Payment Card||This error class happens when the payment profile being used by a subscription is redacted, or if no payment profile is set on the subscription.|
|Soft Decline||This error class is caused by the customer's credit card being declined by the payment gateway for a temporary or fixable reason (e.g. insufficient funds, incorrect billing address).|
|Hard Decline||This error class is caused by the customer's credit card card being declined by the payment gateway for a permanent or non-fixable reason (e.g. the card account is closed).||There is not currently a way to simulate the Hard Decline error class in a test environment.|
This error is very similar to a soft decline. Subscribe Pro looks at error codes and messages returned from your payment processor and gateway and when those indicated the card will be permanently declined, we flag the error with the Hard Decline error class.
|Expired Card||This error class occurs if the subscription attempts to use a payment profile record that is beyond its expiration date.||Attempt a recurring order for a subscription that has a payment profile that is beyond its expiration date.|
|Out of Stock||This error class is used if the requested product is marked as Out of Stock or lacks enough inventory to cover the requested quantity of an item in the order.||Update a product in Magento's catalog to be Out of Stock or have insufficient inventory to cover an order, and then attempt a recurring order for that subscription.|
Note: Recent versions of Magento 2 return an error that is instead classified as eCommerce Platform in this scenario.