testing the payment details to store in a session.