PayPal agreed to buy Hyperwallet, a Canada-based payments provider, for $400 million in cash. 

Through its Braintree unit, PayPal...