Created
January 23, 2019 17:24
-
-
Save tiagomatos/edc7d817a3d5c6b207c1cd734e6ae3fc to your computer and use it in GitHub Desktop.
Jumpseller POST Complete to External Payment G ateway
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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