Skip to main content
POST
/
payment-methods
Set payment method
curl --request POST \
  --url {protocol}://{host}/wp-json/cocart/v1/payment-methods \
  --header 'Content-Type: application/json' \
  --data '
{
  "gateway_id": "<string>"
}
'
true
This endpoint is available in CoCart Plus.

Body

application/json
gateway_id
string
required

Payment gateway ID.

Response

Payment method set successfully.

The response is of type boolean.