This happened to me while I had a content script that ran on every page AND the normal content script that only includes ExtPay on extensionpay.com/*.
Take out "exclude_matches": ["http://localhost/*"],in dev extension and try to pay with dev extension.