Paymethod Model

Get allGET/paymethodsGet all paymethods.
GetGET/paymethods/:paymethod_idGet paymethod with id paymethod_id.
Create POST/paymethodsCreate a paymethod.
Update PUT/paymethods/:paymethod_idUpdate paymethod with paymethod_id.
Delete DELETE/paymethods/:paymethod_idDelete paymethod with paymethod_id.

The paymethod model is composed of the following attributes:

namestringno, required to create.The paymethod's name.Yes
gatewaystringno, required to create.The paymethod's gateway.Yes
enabledbooleannoThe paymethod's status.Yes


Only users type Administrator can get, find, create, update or remove payment methods.