Carney extended the invitation to Modi in a phone call between the two leaders on Friday.
Modi has accepted the invitation, saying his meeting with Carney will lead to “renewed vigour” in bilateral ties.
Indian media reports had earlier said Modi was likely to miss the G7 meeting as Ottawa’s failure to send an invitation to the leader with less than a fortnight to the event had left little time for New Delhi to arrange his schedule.
The June 15–17 meeting of leaders from the Group of Seven advanced economies – Canada, France, Germany, Italy, Japan, the United Kingdom and the United States – will be held in Kananaskis, Alberta. Although India is not a G7 member, it has been regularly invited to take part in the group’s meetings in recent years.