# Testing

## [Testing and QA in Shopify](https://docs.forter.com/extensions/tf7l-testing#testing-and-qa-in-shopify) 
Testing and QA in Shopify

In the following sections, you'll find the recommended testing in your Shopify store for different payment methods and Forter Actions. This will ensure a smooth transition when you're ready to transition to the listen mode and enable decisioning on your Production Environment.

## [Credit Card Testing](https://docs.forter.com/extensions/tf7l-testing#credit-card-testing) 
Credit Card Testing

Below is an outline of recommended credit card testing and flows. In order to adequately test the decisioning and identification of different credit card orders and decisions, Forter recommends testing different credit card orders and decisions. This will ensure that your Forter settings are aligned and your Shopify Admin settings are functioning as expected. Settings such as Forter capturing funds for approve decisions, and voiding orders on decline decisions, are flows that should be tested prior to going live.

**Valid Shopify Test Cards**  
You can find valid Test card numbers for your Shopify sandbox store by going directly to [Shopify's payment testing section](https://help.shopify.com/en/manual/payments/shopify-payments/testing-shopify-payments "Shopify's payment testing section")

- Name on card: Enter at least two words.
- Expiry date: Enter any date in the future.
- CVV: Enter any three digits.
- Card number: Use any of the following numbers:

| **Card type** | **Test Credit Card Number** |
| --- | --- |
| Visa | 4242424242424242 |
| Mastercard | 5555555555554444 |
| American Express | 378282246310005 |
| Discover | 6011111111111117 |
| Diners Club | 30569309025904 |
| JCB | 3530111333300000 |

**Note** if you do not have a dedicated test store, you can simulate a test mode environment on production by toggling checking [Test Mode](https://help.shopify.com/en/manual/payments/shopify-payments/testing-shopify-payments#test-mode "Test Mode") in your shopify payment section. Additional testing is provided for merchants using Shopify Payments as their primary payment gateway.

## [Credit Card Test Cases](https://docs.forter.com/extensions/tf7l-testing#credit-card-test-cases) 
Credit Card Test Cases

### [1.Any Email Valid address](https://docs.forter.com/extensions/tf7l-testing#1any-email-valid-address) 
1.Any Email Valid address

place an order using a valid test credit card and **ANY email address**

Review the Forter decision and the actions taken in your Shopify orders page to determine how the order was handled based on the Forter decision.
Confirm that this is the expected behavior.

### [2. Approve email address](https://docs.forter.com/extensions/tf7l-testing#2-approve-email-address) 
2. Approve email address

Customer pays for order with valid credit card using the email address approve@forter.com 
- Review the status of the order in your Shopify Orders.
- Confirm that the order's status (funds captured **OR** no action taken by Forter plugin) align with the settings you selected in your [Forter Shopify Settings](https://portal.forter.com/settings/shopify "Forter Shopify Settings")

### [3. Decline email address](https://docs.forter.com/extensions/tf7l-testing#3-decline-email-address) 
3. Decline email address

Customer pays for order with valid card using the email address decline@forter.com
- Confirm that the order's status (Cancel, Void, Cancel & notify customer via email, cancel AND Void, **OR** no action taken by Forter plugin) align with the settings you selected in your [Forter Shopify Settings](https://portal.forter.com/settings/shopify "Forter Shopify Settings")

### [4. Not Reviewed email addres](https://docs.forter.com/extensions/tf7l-testing#4-not-reviewed-email-addres) 
4. Not Reviewed email addres

Customer pays for an order using a valid test credit card and the email address notreviewed@forter.com
Note that Forter will by default return not reviewed if the order is a draft order, employee order, or POS order as these frequently do not require decisions or include the relevant forterTokenCookie.
- Confirm that the order has payment captured by Forter **OR** that no action is taken by the Forter plugin based on your Forter Shopify App configuration.

## [Testing Non-Credit Card Orders](https://docs.forter.com/extensions/tf7l-testing#testing-non-credit-card-orders) 
Testing Non-Credit Card Orders

Non-Credit Card orders include any alternative payment methods that can be used to pay partially or fully for an order including:
- Gift Card
- ApplePay
- AmazonPay
- AfterPay
- Affirm
- Shopify Draft Orders

The sections below include recommended testing for each of payment method.

## [Gift Card Orders](https://docs.forter.com/extensions/tf7l-testing#gift-card-orders) 
Gift Card Orders

In order for our servers to correctly identify gift card orders, please send gift card as a payment method in your sandbox environment using each of the following email addresses:

### [Gift Card Order Testing](https://docs.forter.com/extensions/tf7l-testing#gift-card-order-testing) 
Gift Card Order Testing

- General test transaction: place an order using a valid test gift card and **ANY email address**
- Customer pays for entire order with gift card using the email address approve@forter.com
- Customer pays for entire order with gift card using the email address decline@forter.com
- Customer pays for entire order with gift card using the email address notreviewed@forter.com

## [ApplePay](https://docs.forter.com/extensions/tf7l-testing#applepay) 
ApplePay

ApplePay and AmazonPay Please send ApplePay orders may have varying amounts of order data available to Forter's endpoint depending on the payment gateway you're currently using. In order to make sure Forter is correctly identifying and decisioning these orders, please place tests using the following email addresses and send over the corresponding order Ids to your Forter onboarding team:

### [ApplePay Testing](https://docs.forter.com/extensions/tf7l-testing#applepay-testing) 
ApplePay Testing

- General test transaction: place an order using ApplePay and **ANY email address**
- Customer pays for order using ApplePay and the email address approve@forter.com
- Customer pays for order using ApplePay and the email address decline@forter.com
- Customer pays for order using ApplePay and the email address notreviewed@forter.com

## [AmazonPay](https://docs.forter.com/extensions/tf7l-testing#amazonpay) 
AmazonPay

Please follow the same instructions listed in the ApplePay order section and reach out to your Forter onboarding team as soon as some AmazonPay orders have been placed

## [AfterPay & Affirm Payment methods](https://docs.forter.com/extensions/tf7l-testing#afterpay-affirm-payment-methods) 
AfterPay & Affirm Payment methods

Like AmazonPay and ApplePay, **AfterPay** orders may vary in terms of the payment data available. Typically merchants do not request Forter decisioning on orders payed with **Affirm** or **AfterPay** as the gateway maintains chargeback liability. However, if you would like Forter to decision these orders, please use the below testing scenarios and follow up with your onboarding team so that they can review the order data.

### [AfterPay & Affirm Testing](https://docs.forter.com/extensions/tf7l-testing#afterpay-affirm-testing) 
AfterPay & Affirm Testing

- General test transaction: place an order using AfterPay account and **ANY email address**
- Customer pays for order using AfterPay and email address approve@forter.com
- Customer pays for order using AfterPay and email address decline@forter.com
- Customer pays for order using AfterPay and email notreviewed@forter.com

## [Draft Orders](https://docs.forter.com/extensions/tf7l-testing#draft-orders) 
Draft Orders

Shopify Draft orders are orders placed by the merchant directly through the Shopify Admin. For more information on Shopify's draft orders, please see Shopify's Official [Draft Order Documentation](https://help.shopify.com/en/manual/orders/create-orders "Draft Order Documentation").

- By default, Forter will decision these orders if they include credit card payment details.
- **Note** Depending on the data Forter receives in the test, it may be possible for Forter to identify draft order types, return a Not Reviewed decision and take no further action on the payment for these order types.
- Please reach out to your Forter onboarding team to discuss the available opitons for decisioning Shopify Draft Orders through your Forter integration.

**Draft Order Testing**
- If you currently create draft orders in through your admin, please place a test order using ANY email address (i.e. [_test@test.com_](mailto:test@test.com "test@test.com")).
