Skip to content

Testing suite #15

jedateach opened this Issue Jul 1, 2012 · 0 comments

1 participant


To perform unit tests accurately, we need to

We should also come up with some guidelines for what to test for each payment type.


  • First create sandbox connection to the gateway
  • Create mock
  • Where appropriate, test for each status type possible: Success, Failure, Pending, Incomplete

Typical steps of processing payment that might need testing:

  • Load data
  • Validate data
  • Authorise payment
  • Capture payment
  • Parse response
  • (post checks?)
  • Update model
  • Display data / redirect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.