I\'m trying to post data to the payment gateway through api but no success. I\'ve added all these below methods in functions.php
function add_cors_http_header