matthiasmullie/ogone — pull request #2 by SpacefulSpecies (2014-05-23 14:09:34+00:00)
Title: Setting invalid encryption now throws exception instead of failing silently

If you enter a wrong encryption type, lets say `SHA-512` instead of the valid `SHA512`, the script would just fail silently except Ogone who says `unknown order/1/s/`.

I've added getter and a setter that will throw InvalidArgumentException when the encryption method is wrong.