Medusa Payments API
A payment is created when a payment amount is authorized. The payment can then be captured or refunded. A payment is created from the payment session that was authorized, and it belongs to the payment session's collection. These API routes allow admin users to manage payments.