ulsdevteam / alma-payment-microservice

Microservice for fines & fees payment in Alma thru Authorize.net
MIT License
0 stars 0 forks source link

Throw additional exceptions on webhook processing #7

Open ctgraham opened 3 years ago

ctgraham commented 3 years ago

https://github.com/ulsdevteam/alma-payment-microservice/blob/ff69d9e4707bdf9ef12ab8a65fa7388f78c19df7/receipt.php#L25-L63

Check for success of json_decode and throw exception if not an object/array.

Throw an exception on the default case of the switch.