I am writing tests for my code which generates and emails an invoice to our customer, however right now I have to:
- Run the create invoice and email
- Open my email client, launch payment URI and complete payment manually
- Run my follow up scripts that reads webhook events etc to update my local status
The question: Can I automate step 2 (simulate an online payment) using an existing Square REST API? I’ve tried using the payments API, but have not been successful.
I’d rather avoid having to use chromedriver or other web spoofing framework to do this as it feels somewhat heavy handed for tests scripts.
Thanks!