Fix bugs when transaction is KO

extract method to API
Quick fix due to paymill api bug
manage update of a subscription