--- title: "End to End Card Payment Test" # MODIFY THIS TITLE chapter: true weight: 8 # MODIFY THIS VALUE TO REFLECT THE ORDERING OF THE MODULES --- # End to End Card Payment Test ## Run End to End Card Payment Test 1) Return to the Card Payment Web Portal. You should see something similar to the following: ![VGS VGS Card Payment Web Portal](/images/vgs-card-security-code-alias-test.png) 2) In the card payment fields, enter the following: * Cardholder Name: (e.g. Charlie Business) * Card number: 4111 1111 1111 1111 * Expiration Date: 03 / 30 * Card Security Code: 737 * **Amount: 52** 3) Hit "Submit" to run the test. 4) Confirm the payment request response and note the PAN alias, CVC/CVV allias, PSP, PSP payment token, and status.: { "a_name": "Charlie Business", **"b_card_number": "4242429360474242",** **"c_card_cvc": "tok_sandbox_wh9BpmooGbJbKGEXTAm2hb",** "d_card_exp": "3/30", **"e_amount": 52,** **"f_currency": "USD",** **"g_psp": "Checkout",** **"h_checkout_payment_token": "tok_jkjb3ehmjbue7cqws6qe4ydeli",** **"i_status": "Authorized"** } 5) If the above steps were done correctly, you should see a result similar to the following: ![VGS VGS PAN Alias Test](/images/vgs-end-to-end-card-payment-test-checkout.png) 6) In the card payment fields, enter the following: * Cardholder Name: (e.g. Charlie Business) * **Card number: 5454 5454 5454 5454** * Expiration Date: 03 / 30 * **Card Security Code: 234** * **Amount: 152** 7) Hit "Submit" to run the test. 8) Confirm the payment request response and note the PAN alias, CVC/CVV allias, PSP, PSP payment token, and status.: { "a_name": "Charlie Business", **"b_card_number": "5454546437625454",** **"c_card_cvc": "tok_sandbox_7CFqhMPNwpY7TzVgtg5NL1",** "d_card_exp": "3/30", **"e_amount": 152,** **"f_currency": "USD",** **"g_psp": "Stripe",** **"h_stripe_payment_token": "tok_1LfcShFchPK9DlN13jiZT2AU",** **"i_status": "succeeded"** } 9) If the above steps were done correctly, you should see a result similar to the following: ![VGS VGS PAN Alias Test](/images/vgs-end-to-end-card-payment-test-stripe.png) Please note that because you control and own the end-users' data, you are able to route to whoever you want. In this lab, we setup an end to end card payment flow. We were able to do card brand routing. We routed Visa cards through Checkout.com and Mastercard cards through Stripe. You can do something similar with other variables like card type, currency, and amount. Congratulations, you have finished this lab.