Verify updating a payment was successful before editing payment_meta

Fixes #2500