Skip to content

Commit

Permalink
feat:se ajusta checkout de produccion
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoSaldarriagaPayco committed Jul 4, 2024
1 parent ec03d40 commit 3129c6c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


## Versiones
* [ePayco plugin WHMCS v8.2.1](https://github.com/epayco/Plugin_ePayco_WHMCS/releases/tag/v8.2.1).
* [ePayco plugin WHMCS v8.2.0](https://github.com/epayco/Plugin_ePayco_WHMCS/releases/tag/v8.2.0).
* [ePayco plugin WHMCS v8.1.0](https://github.com/epayco/Plugin_ePayco_WHMCS/releases/tag/v8.1.0).
* [ePayco plugin WHMCS v8.0.0](https://github.com/epayco/Plugin_ePayco_WHMCS/releases/tag/v8.0.0).
Expand Down
2 changes: 1 addition & 1 deletion payco_whmcs/modules/gateways/callback/epayco.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$confirmation = false;
$async = true;
if(!empty($_GET['ref_payco'])){
$responseData = @file_get_contents('https://secure.epayco.io/validation/v1/reference/'.$_GET['ref_payco']);
$responseData = @file_get_contents('https://secure.epayco.co/validation/v1/reference/'.$_GET['ref_payco']);
if($responseData === false){
logTransaction($gatewayParams['name'], $_GET, 'Ocurrio un error al intentar validar la referencia');
header("Location: ".$gatewayParams['systemurl']);
Expand Down
4 changes: 2 additions & 2 deletions payco_whmcs/modules/gateways/epayco.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function epayco_link($params){
</center>
</p>
<script
src="https://epayco-checkout-testing.s3.amazonaws.com/checkout.preprod.js">
src="https://checkout.epayco.co/checkout.js">
</script>
<script>
var data = {
Expand Down Expand Up @@ -206,7 +206,7 @@ function epayco_link($params){
headers["privatekey"] = privatekey;
headers["apikey"] = apikey;
var payment = function (){
return fetch("https://cms.epayco.io/checkout/payment/session", {
return fetch("https://cms.epayco.co/checkout/payment/session", {
method: "POST",
body: JSON.stringify(info),
headers
Expand Down
2 changes: 1 addition & 1 deletion payco_whmcs/modules/gateways/epayco/epayco.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function getQueryParam(param) {
var inicio_ = document.getElementById("inicio");
inicio_.href = inicio;
var ref_payco = getQueryParam("ref_payco");
var urlapp = "https://secure.epayco.io/validation/v1/reference/" + ref_payco;
var urlapp = "https://secure.epayco.co/validation/v1/reference/" + ref_payco;
$.get(urlapp, function(response) {
Expand Down

0 comments on commit 3129c6c

Please sign in to comment.