Create a payment with SDK

Hi, im’ using the official php sdk

After i create an order, and i’ve the orderId
$order=$infusionsoft->orders()->create($datas);

i shoult to create a payment to set the order as PAID.

What is the correct function to do it?