Paypal Payment Channel commit 2.3: maske sure get_endpoint returns a string