k-merchant

$api_key,
‘custom_token’ => $custom_token,
‘customer_address’ => $customer_address,
‘customer_city’ => $customer_city,
‘customer_country’ => $customer_country,
‘customer_email’ => $customer_email,
‘customer_firstname’ => $customer_firstname,
‘customer_id’ => $customer_id,
‘customer_lastname’ => $customer_lastname,
‘customer_phone’ => $customer_phone,
‘customer_state’ => $customer_state,
‘customer_zipcode’ => $customer_zipcode,
‘fiat_currency’ => $fiat_currency,
‘fiat_amount’ => $fiat_amount,
‘order_id’ => $order_id,
‘shop_id’ => $shop_id,
‘cancel_url’ => $cancel_url,
‘redirect_url’ => $redirect_url,
‘signature’ => $signature
);

$args = array(
‘body’ => $body,
‘timeout’ => ‘5’,
‘redirection’ => ‘5’,
‘httpversion’ => ‘1.0’,
‘blocking’ => true,
‘headers’ => array(),
‘cookies’ => array()
);

$response = wp_remote_post( ‘http://merchant.k-merchant.com/api/v1/transaction/generate’, $args );

echo $response;
die();

$result = post(‘http://merchant.k-merchant.com/api/v1/transaction/generate’, array(

));

echo $result;

die();
$toke=json_decode($result, true);

?>