Recurring Payment Charged Twice

Hi,

I am testing out the recurring payment (https://developer.moneris.com/Documentation/NA/E-Commerce%20Solutions/API/Purchase?lang=php#purchasewithrecurringbill) and I noticed today in the store that two transactions/payments occurred on the recurring payment date. I used the example code from the previously linked documentation so not sure where I went wrong.

Here are screenshots from the Recurring Transaction record in the test store:

 



How do I fix this before we go live with this implementation?

Thanks for any help!