Payments processor Global Payments Inc. (GPN), Tuesday said it has agreed to buy smaller rival Heartland Payment Systems Inc. (HPY) for $4.3 billion in a cash and stock deal.