Skip to content

Instantly share code, notes, and snippets.

@tiagomatos
Created January 23, 2019 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tiagomatos/edc7d817a3d5c6b207c1cd734e6ae3fc to your computer and use it in GitHub Desktop.
Save tiagomatos/edc7d817a3d5c6b207c1cd734e6ae3fc to your computer and use it in GitHub Desktop.
Jumpseller POST Complete to External Payment G ateway
$response_params = array(
"x_account_id" => $this->params['chave_api'],
"x_amount" => $this->params['valor'],
"x_currency" => "EUR",
"x_reference" => $this->params['identificador'],
"x_result" => "completed",
"x_timestamp" => date('Y-m-d') . 'T' . date('H:i:s') . 'Z',
"x_message" => "Pagamento realizado com sucesso"
);
// $response_params['x_signature'] = $this->generateSignature($response_params);
$result = $this->cURL_request($this->callback,$response_params);
print_r($result['resultado']);
http_response_code($result['estado']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment