San Francisco based global payments platform raised $300m in growth funding led by Square Peg.