Their unbeaten third-wicket stand was worth 104 runs.
After a two-hour wait in the pavilion as rain fell throughout the afternoon at Saxton Oval in Nelson, Guptill and Taylor were eventually given the green light to return to the crease, requiring 87 runs in 11 overs for victory.
Pakistan looked on course to level the series as they claimed the wickets of Colin Munro (zero) and Kane Williamson (19) to have New Zealand at 47 for two in the 10th over. Tim Southee and Trent Boult were at the openers straightaway, Azhar Ali and Imam-ul-Haq - in for the injured Fakhar Zaman - struggling against generous early swing.
Hasan then blasted his first 50 and Khan his second when they mounted a rescue mission with Pakistan 141 for seven in the 37th over.
Chasing 247 for a win, New Zealand were rocked early when Colin Munro was dismissed without opening his account on the thid ball of their innings. At the same time, Boult was risky with the short ball, with Azhar survived a caught behind after a review showed it was in fact his helmet that had grazed the ball on the way through to the keeper. But just as the momentum was shifting, Malik danced down the wicket and hit one straight to long-on. Sarfraz's was shocking, coming down the wicket to a short ball from Todd Astle and getting himself stumped. Mitchell Santner, seeing the batsman advance, threw it wide outside off. Hafeez reached out but slapped it straight to Guptill at extra cover.
We feel the hosts will go into the game as the favourites once again and picking majority of the players from the New Zealand camp will help in fantasy cricket too.
With Pakistan on the ropes, Shadab Khan and Hasan stepped up, cracking 21 off an Astle over as they upped the tempo. Malik had been in good touch during the last ODI assignment against Sri Lanka in UAE, but doesn't boast of a good record in New Zealand. The leg-spinner felt that Pakistan failed to grab the limited opportunities they got.
Allrounder Colin de Grandhomme will rejoin the Black Caps ODI squad ahead of the third one-day global against Pakistan in Dunedin on Saturday.