check error codes and if set mark as failed.
add missing action to payment factory.
update doc.