GuidesAPI Reference
Guides

Testing Scenarios

Initiate and abandon the payment flow

ScenarioNameDescriptionExpected Result
A1Initiate and abandon the payment flow as an existing userInitiate the payment flow and then close the payment flow.User should see the Credit Key login view. No order should exist in both merchant and Credit Key system.
A2Initiate and abandon the payment flow as a new userInitiate the payment flow and then close the payment flow.User should see the Credit Key application view. No order should exist in both merchant and Credit Key system.

Auth/Capture Functionality

ScenarioNameDescriptionExpected Result
B1Successfully place order with existing borrower.Initiate the payment flow with existing customer information in checkout and place orderOrder should be authorized in Credit Key and should be awaiting fulfillment in the merchant's system.
B2Successfully place order with a new borrower.Initiate the payment flow with new customer information in checkout. Complete the flow using this testing documentOrder should be authorized in Credit Key and should be awaiting fulfillment in the merchant's system
B3Unsuccessfully complete the checkout flow with a new user - declined application.Initiate the payment flow with new customer information in checkout. Complete the flow using the declined conditions in this testing documentOrder not authorized in Credit Key and not awaiting fulfillment in the merchant's system.
B4Unsuccessfully complete the checkout flow - pended application.Initiate the payment flow with new customer information in checkout. Complete the flow using the pended conditions in this testing documentOrder not authorized in Credit Key and not awaiting fulfillment in the merchant's system.
B5Unsuccessfully complete the checkout flow - pended order.Initiate the payment flow with existing customer information in checkout with a grand_total that is more than the borrower's available TCL.Order not authorized in Credit Key and not awaiting fulfillment in the merchant's system.

Capture Payment Functionality

ScenarioNameDescriptionExpected Result
C1Fully capture paymentCreate an order and ship it without partials.Order is 'Shipped' in Credit Key and merchant's system
C2Partially capture paymentPlace an order with three items in cart. Ship a single item from that order.First item is shipped in merchant's system. A child order is created and 'Shipped'(captured) in Credit Key.
C3Complete partial capture paymentShip the remaining items from the C2 order with the remaining items.Remaining items are shipped in merchant's system and a child order is created for the remaining items. The original order is 'Completed' in Credit Key.
C4Partial VoidPlace an order with 2 items in cart, but only ship 1. Void the remaining amount.First item is shipped in merchant's system and a child order is created and 'Shipped'(captured) in Credit Key. Parent order is 'Completed'.

Update/Change Order Functionality

ScenarioNameDescriptionExpected Result
D1Update an order.Place an order with existing borrower. Update the grand total and change a cart item.Order should be updated to reflect the changes in Credit Key.

Cancel Order Functionality

ScenarioNameDescriptionExpected Result
E1Cancel an orderPlace an order with existing borrower. Cancel the orderThe order should be canceled in Credit Key.

Refund Functionality

ScenarioNameDescriptionExpected Result
F1Partial RefundPlace and ship an order. Apply a partial refund after shipment.All values should be correct, logging the refund and factoring it into the loan balance.
F3Return/Full RefundPlace and ship an order. Process a return for the full amount of the authorizationThe full amount of the order is applied as a refund in Credit Key.

Questions? Contact Credit Key Support