Now listens for IPN and updates order status.
Check $order value before using it.
Merge pull request #2 from jaafit/master

Plugin now listens for bitpay IPN and updates order status