Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //receber post
- $body = json_decode(file_get_contents('php://input'), true);
- print_r($body);
- // faz o tratamento com o body e a cotação de frete que deseja
- $resposta = array(
- array(
- 'method' => 'nome do metodo', //string
- 'company' => 'company', //string
- 'price' => 10.99, //float
- 'estimate' => 1 //integer
- )
- );
- echo $resposta;
- exit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement