curl --request POST \
--url {protocol}://{host}/wp-json/cocart/preview/order-received/{order_id}/pay \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"order_key": "<string>",
"payment_method": "<string>",
"payment_data": [
{
"key": "wc-stripe-payment-token",
"value": "<string>"
}
]
}
'