This documentation is a Work in Progress. There maybe content unfinished. Feedback is welcome.
curl --request POST \
--url {protocol}://{host}/wp-json/cocart/v1/payment-methods \
--header 'Content-Type: application/json' \
--data '{
"gateway_id": "<string>"
}'
true
Sets a payment method for the cart.
true
Payment method set successfully.
The response is of type boolean
.
Was this page helpful?