@@ 147-155 (lines=9) @@ | ||
144 | * @param $cmd_id |
|
145 | * @return string |
|
146 | */ |
|
147 | public function getRedirectURL($cmd_total, $cmd_id) |
|
148 | { |
|
149 | $test_mode = (int)$this->handlers->h_oledrion_gateways_options->getGatewayOptionValue($this->gatewayInformation['foldername'], 'paypal_test'); |
|
150 | if ($test_mode == 1) { |
|
151 | return 'https://www.sandbox.paypal.com/cgi-bin/webscr'; |
|
152 | } else { |
|
153 | return 'https://www.paypal.com/cgi-bin/webscr'; |
|
154 | } |
|
155 | } |
|
156 | ||
157 | /** |
|
158 | * Retourne les éléments à ajouter au formulaire en tant que zones cachées |
|
@@ 216-224 (lines=9) @@ | ||
213 | * |
|
214 | * @return string L'URL chez Paypal à appeler pour obtenir des informations |
|
215 | */ |
|
216 | private function getdialogURL() |
|
217 | { |
|
218 | $test_mode = (int)$this->handlers->h_oledrion_gateways_options->getGatewayOptionValue($this->gatewayInformation['foldername'], 'paypal_test'); |
|
219 | if ($test_mode == 1) { |
|
220 | return 'www.sandbox.paypal.com'; |
|
221 | } else { |
|
222 | return 'www.paypal.com'; |
|
223 | } |
|
224 | } |
|
225 | ||
226 | /** |
|
227 | * Dialogue avec la passerelle de paiement pour indiquer l'état de la commande |