Documentation is still being updated. Some content maybe unfinished.
curl --request POST \
--url {protocol}://{host}/wp-json/cocart/v1/payment-methods \
--header 'Content-Type: application/json' \
--data '
{
"gateway_id": "<string>"
}
'trueSets a payment method for the cart.
A valid request URL is required to generate request examplestruePayment gateway ID.
Payment method set successfully.
The response is of type boolean.
Was this page helpful?