Testing SFRA
In general, you can use any card number when testing against the test gateway and they will be accepted. A Test bank is also available if the merchant needs to test PayPal, iDEAL, or other alternative payment methods.
Preconditions for the following test scenarios:
- Imported ‘altapay_sfra_metadata.xml’
- Updated the ‘Custom Site Preferences’ with AltaPay user with API access rights
- Added terminals for credit card and/or alternative payment
- Items available in the storefront
- The payment method for cards connects with a terminal that is configured to receive cards. An alternative payment method must be connected to a terminal that accepts that payment method.
Successful card payment
- Add an item to the cart.
- Click “View cart”.
- When shopping cart is shown, click on “Checkout” button.
- Select either Guest checkout or login.
- Select shipping method.
- Click on “Next: Payment” button.
- Fill in remaining information
- Select “Credit Card” as payment method
- Click on “Next: Place Order” button.
- The payment page appears. Ensure it is a payment page for card payments.
If guest checkout, fill in the information.
- Enter card details (use random numbers) and click on “Submit” button.
- Verify that the confirmation page is shown with correct information and without any error message. Take a note of the order number.
- From the SFCC Business Manager navigate to: Merchant tools -> Ordering -> Orders. Locate and select the order and verify that the order has been handled correctly – “Confirmation Status” = confirmed.
- Login in to https://testgateway.altapaysecure.com and locate the order by the order number via the search box in the top right corner. Check that the amount corresponds with the information in Business manager and ensure that the status of the payment is “preauth”.
Failed card payment
- Add an item to the cart.
- Click “View cart”.
- When shopping cart is shown, click on “Checkout” button.
- Select either Guest checkout or login.
- Select shipping method.
- Click on “Next: Payment” button.
- Fill in remaining information
- Select “Credit Card” as payment method
- Click on “Next: Place Order” button.
- The payment page appears. Ensure it is a payment page for card payments.
If guest checkout, fill in the information.
- Enter card details – use the following payment information.
- Card number: 4180000000000566
- Expiry month: 05
- Expiry year: 2019
- CVC: 444
- Click on “Submit” button.
- Ensure that the user is redirected back to the Checkout flow. Error messages are returned from the AltaPay controller but the Merchant will have to implement custom functionality to show these messages. See Requirements for more details.
- From the SFCC Business Manager, navigate to: Merchant tools -> Ordering -> Orders. Locate and select the order and verify that the order has been handled correctly – “Order Status” = failed. Take a note of the order number.
- Login in to https://testgateway.altapaysecure.com and locate the order by the order number via the search box in the top right corner. Ensure that the status of the order is “preauth_failed”.
3D Secure card payment
- Add an item to the cart.
- Click “View cart”.
- When shopping cart is shown, click on “Checkout” button.
- Select either Guest checkout or login.
- Select shipping method.
- Click on “Next: Payment” button.
- Fill in remaining information
- Select “Credit Card” as payment method
- Click on “Next: Place Order” button.
- The payment page appears. Ensure it is a payment page for card payments.
If guest checkout, fill in the information.
- Enter card details – use the following payment information.
- Card number: 4170000000000568
- Expire month: 05
- Expire year: 2019
- CVC: 444
- Click on “Submit” button.
- The user is redirected to the issuing bank 3D Secure confirmation page. Enter the correct validation information. If you are testing against the test gateway, a mock-up 3D Secure page is shown. Click “Redirect” button.
- Verify that the confirmation page is shown with correct information and without any error message. Take a note of the order number.
- From the SFCC Business Manager navigate to: Merchant tools -> Ordering -> Orders. Locate and select the order and verify that the order has been handled correctly – “Confirmation Status” = confirmed.
- Login in to https://testgateway.altapaysecure.com and locate the order by the order number via the search box in the top right corner. Check that the amount corresponds with the information in Business manager and ensure that the status of the payment is “preauth” and “3D Secure result” is successful.
3D Secure failed card payment
- Add an item to the cart.
- Click “View cart”.
- When shopping cart is shown, click on “Checkout” button.
- Select either Guest checkout or login.
- Select shipping method.
- Click on “Next: Payment” button.
- Fill in remaining information
- Select “Credit Card” as payment method
- Click on “Next: Place Order” button.
- The payment page appears. Ensure it is a payment page for card payments.
If guest checkout, fill in the information.
- Enter card details – use the following payment information.
- Card number: 4170000000000568
- Expire month: 05
- Expire year: 2019
- CVC: 444
- The user is redirected to the issuing bank 3D Secure confirmation page. Enter the correct validation information. If you are testing against the test gateway, a mock-up 3D Secure page is shown. Click “Redirect” button.
- Ensure that the user is redirected back to the Checkout flow. Error messages are returned from the AltaPay controller but the Merchant will have to implement custom functionality to show these messages. See Requirements for more details.
- From the SFCC Business Manager navigate to: Merchant tools -> Ordering -> Orders. Locate and select the order and verify that the order has been handled correctly – “Order Status” = failed. Take a note of the order number.
- Login in to https://testgateway.altapaysecure.com and locate the order by the order number via the search box in the top right corner. Ensure that the status of the order is “preauth_failed”.
Successful alternative payment
- Add an item to the cart.
- Click “View cart”.
- When shopping cart is shown, click on “Checkout” button.
- Select either Guest checkout or login.
- If guest checkout, fill in the information.
- Select shipping method.
- Click on “Next: Payment” button.
- Fill in remaining information
- Select preferred “alternative“ payment option as payment method
- Click on “Next: Place Order” button.
- Verify that the customer is redirected to the alternative payment provider webpage. Verify the pending payment.
- If you are testing against the test gateway a mock-up for bank and alternative payment solutions will be shown. If that is the case, click “Sign in” (No credentials needed) and “Accept”.
- Verify that the confirmation page is shown with correct information and without any error message. Take a note of the order number.
- From the SFCC Business Manager navigate to: Merchant tools -> Ordering -> Orders. Locate and select the order and verify that the order has been handled correctly – “Confirmation Status” = confirmed.
- Login in to https://testgateway.altapaysecure.com and locate the order by the order number via the search box in the top right corner. Check that the amount corresponds with the information in Business manager and ensure that the status of the payment is “preauth” or “bank_payment_finalized”, depending on the acquirer.
Failed alternative payment (Customer cancel)
- Add an item to the cart.
- Click “View cart”.
- When shopping cart is shown, click on “Checkout” button.
- Select either Guest checkout or login.
- If guest checkout, fill in the information.
- Select shipping method.
- Click on “Next: Payment” button.
- Fill in remaining information
- Select preferred “alternative“ payment option as payment method
- Click on “Next: Place Order” button.
- If you are testing against the test gateway a mock-up for bank and alternative payment solutions will be shown. If that is the case, click “Developer options” and “Cancel”.
- Ensure that the user is redirected back to the Checkout flow. Error messages are returned from the AltaPay controller but the Merchant will have to implement custom functionality to show these messages. See Requirements for more details.
- From the SFCC Business Manager navigate to: Merchant tools -> Ordering -> Orders. Locate and select the order and verify that the order has been handled correctly – “Order Status” = failed.
- Login in to https://testgateway.altapaysecure.com and locate the order by the order number via the search box in the top right corner. Check that the amount corresponds with the information in Business manager and ensure that the status of the payment is “epayment_cancelled” or “preauth_failed”, depending on the acquirer.
Failed alternative payment
- Add an item to the cart.
- Click “View cart”.
- When shopping cart is shown, click on “Checkout” button.
- Select either Guest checkout or login.
- If guest checkout, fill in the information.
- Select shipping method.
- Click on “Next: Payment” button.
- Fill in remaining information
- Select preferred “alternative“ payment option as payment method
- Click on “Next: Place Order” button.
- If you are testing against the test gateway a mock-up for bank and alternative payment solutions will be shown. If that is the case, click “Developer options” and “Declined”.
- Ensure that the user is redirected back to the Checkout flow. Error messages are returned from the AltaPay controller but the Merchant will have to implement custom functionality to show these messages. See Requirements for more details.
- From the SFCC Business Manager navigate to: Merchant tools -> Ordering -> Orders. Locate and select the order and verify that the order has been handled correctly – “Order Status” = failed.
- Login in to https://testgateway.altapaysecure.com and locate the order by the order number via the search box in the top right corner. Check that the amount corresponds with the information in Business manager and ensure that the status of the payment is “epayment_declined” or “preauth_failed”, depending on the acquirer.
Successful alternative payment notification
- Add an item to the cart.
- Click “View cart”.
- When shopping cart is shown, click on “Checkout” button.
- Select either Guest checkout or login.
- If guest checkout, fill in the information.
- Select shipping method.
- Click on “Next: Payment” button.
- Fill in remaining information
- Select preferred “alternative“ payment option as payment method
- Click on “Next: Place Order” button.
- Verify that the customer is redirected to the alternative payment provider webpage. Verify the pending payment.
- If you are testing against the test gateway a mock-up for bank and alternative payment solutions will be shown. If that is the case, click “Developer options” and “Open” (Opens in a new window). Do not close the test bank page.
- Verify that the confirmation page is shown with correct information and without any error message. Take a note of the order number.
- From the SFCC Business Manager navigate to: Merchant tools -> Ordering -> Orders. Locate and select the order and verify that the order has been handled correctly – “Confirmation Status” = Not confirmed.
- Go back to the test bank page and click ‘Call success notification now’. It can take a couple of minutes before the actual notification is triggered via the API.
- Repeat step 5 and verify that the status has changed from “Not confirmed” to “Confirmed”.
- Login in to https://testgateway.altapaysecure.com and locate the order by the order number via the search box in the top right corner. Check that the amount corresponds with the information in Business manager and ensure that the status of the payment is “preauth” or “bank_payment_finalized”, depending on the acquirer.
Failed alternative payment notification
- Add an item to the cart.
- Click “View cart”.
- When shopping cart is shown, click on “Checkout” button.
- Select either Guest checkout or login.
- If guest checkout, fill in the information.
- Select shipping method.
- Click on “Next: Payment” button.
- Fill in remaining information
- Select preferred “alternative“ payment option as payment method
- Click on “Next: Place Order” button.
- Verify that the customer is redirected to the alternative payment provider webpage. Verify the pending payment.
- If you are testing against the test gateway a mock-up for bank and alternative payment solutions will be shown. If that is the case, click “Developer options” and “Open” (Opens in a new window). Do not close the test bank page.
- Verify that the confirmation page is shown with correct information and without any error message. Take a note of the order number.
- From the SFCC Business Manager navigate to: Merchant tools -> Ordering -> Orders. Locate and select the order and verify that the order has been handled correctly – “Confirmation Status” = Not confirmed.
- Go back to the test bank page and click ‘Call declined notification now’. It can take a couple of minutes before the actual notification is triggered via the API.
- Repeat step 5 and verify that the status has changed from “Not confirmed” to “Cancelled
Fraud checking (accepted credit card)
- Add an item to the cart.
- Click “View cart”.
- When shopping cart is shown, click on “Checkout” button.
- Select either Guest checkout or login.
- Select shipping method.
- Click on “Next: Payment” button.
- Fill in remaining information
- Select “Credit Card” as payment method
- Click on “Next: Place Order” button.
- The payment page appears. Ensure it is a payment page for card payments.
If guest checkout, fill in the information.
- Use a credit card number enabled for fraud, for example, 4170000000000006, checking and that returns the “Accept” status.
- Verify that the confirmation page is shown with correct information and without any error message. Take a note of the order number.
- From the SFCC Business Manager navigate to: Merchant tools -> Ordering -> Orders. Locate and select the order and verify that the order has been handled correctly – “Confirmation Status” = Confirmed.
- Login in to https://testgateway.altapaysecure.com and locate the order by the order number via the search box in the top right corner. Check that the amount corresponds with the information in Business manager and ensure that the status of the payment is “preauth”.
- Repeat with a credit card that returns the ‘Challenge’ status, for example, 5250000000000121.
- Repeat with a credit card that returns the ‘Unknown’ status, for example, 5110000000000113.
Fraud checking (denied credit card)
- Add an item to the cart.
- Click “View cart”.
- When shopping cart is shown, click on “Checkout” button.
- Select either Guest checkout or login.
- Select shipping method.
- Click on “Next: Payment” button.
- Fill in remaining information
- Select “Credit Card” as payment method
- Click on “Next: Place Order” button.
- The payment page appears. Ensure it is a payment page for card payments.
If guest checkout, fill in the information.
- Use a credit card number enabled for fraud checking, for example 4170000000000105, and check that it returns the ‘Deny’ status.
- Ensure that the user is redirected back to the Checkout flow. Error messages is returned from the AltaPay controller but as described in the limitations section, the Merchant will have to implement custom functionality to show these messages.
- From the SFCC Business Manager navigate to: Merchant tools -> Ordering -> Orders. Locate and select the order and verify that the order has been handled correctly – “Order Status” = Failed.
- Login in to https://testgateway.altapaysecure.com and locate the order by the order number via the search box in the top right corner. Check that the amount corresponds with the information in Business manager and ensure that the status of the payment is “preauth”.