The isPaymentSubmitted output parameter will let you determine if the user have clicked submit and is awaiting for a response from processor before the timer expires. Particularly beneficial in scenarios where responses may be delayed or transaction timed out.
Outcomes:
- isPaymentSubmitted = true and isSuccessful = true: Successful Payment
- isPaymentSubmitted = true and isSuccessful = false: Card Decline or No Response from Processor
- isPaymentSubmitted = false and isSuccessful = true: Not Possible Scenario
- isPaymentSubmitted = false and isSuccessful = false: Validation Error (i.e. invalid card number)