-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ai 73 update conekta plugin prestashop (#122)
* Refactor gitignore and composer.json, update PHP version and add new dependencies - Updated .gitignore to ignore additional files and directories - Updated composer.json to require a minimum PHP version of 7.4 - Added new dependencies: conekta/conekta-php v6.0.9 * Update Conekta plugin version to 3.0.0 - Update the plugin version in config.xml - Update the plugin version in conekta.php - Update the plugin version in HelperGateway.php - Update the plugin version in README.md CreateWebhook use case: - Remove Conekta namespace import and replace it with WebhooksApi, Configuration, and WebhookRequest imports from Conekta SDK. - Replace `Conekta::setApiKey` with creating a new instance of WebhooksApi using `getApiWebHookInstance` method. - Replace `Webhook::where()` with calling `getWebhooks` method on `$webhookApi`. - Replace `Webhook::create` with calling `createWebhook` method on `$webhookApi`. * commit * feat: Update Conekta payment module - Updated hook registration for displayPaymentReturn - Refactored code in hookDisplayPaymentReturn to simplify logic - Added redirection_time parameter to checkout configuration - Updated PHP version requirement to 7.4 or greater - Improved error handling and response messages in notification controller - Fixed typo in mail templates file header comment - Renamed method insertOxxoPayment to insertCashPayment in Database class - Updated version number in file headers * Update Conekta module version to 3.0.0 and add Prestashop and plugin versions to metadata - Update Conekta module version from 2.3.7 to 3.0.0 - Add 'plugin_version' and 'prestashop_version' fields to metadata in the checkout request * AI-73 add if validation for conekta plugin * AI-73 add if validation for conekta plugin * Update conekta/conekta-php dependency to "dev-update-lib" - Updated the version of conekta/conekta-php in composer.json - Updated the autoload.php file with the new class name - Updated the autoload_real.php file with the new class name - Updated the autoload_static.php file with the new class name - Updated installed.json and installed.php files with the new version and reference This commit updates the dependency on conekta/conekta-php to use a development branch named "dev-update-lib". * AI-73 add version 3.0 for prestashop 8.0 * AI-73 add text in readme * AI-73 add text in readme * AI-73 add text in readme * AI-73 add text in readme --------- Co-authored-by: Franklin <[email protected]>
- Loading branch information
1 parent
5c5b589
commit d74abc9
Showing
51 changed files
with
1,203 additions
and
4,660 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile | ||
{ | ||
"name": "Existing Dockerfile", | ||
"build": { | ||
// Sets the run context to one level up instead of the .devcontainer folder. | ||
"context": "..", | ||
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. | ||
"dockerfile": "../Dockerfile" | ||
} | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Uncomment the next line to run commands after the container is created. | ||
// "postCreateCommand": "cat /etc/os-release", | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "devcontainer" | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
/composer.lock | ||
/.php-cs-fixer.cache | ||
.DS_Store | ||
.DS_Store | ||
.idea | ||
/vendor | ||
/node_modules |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM php:7.4-cli-alpine | ||
|
||
|
||
|
||
COPY --from=composer:2.5.1 /usr/bin/composer /usr/bin/composer | ||
|
||
RUN composer global require phpunit/phpunit ~9 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,26 @@ | ||
# Comando principal | ||
zip: | ||
zip -r conekta-prestashop ./ -x '*.git*' -x '*.idea*' -x '*.github*' -x 'node_modules*' | ||
# Define variables | ||
ZIP_NAME = conekta.zip | ||
FOLDER_NAME = conekta | ||
EXCLUDES = "*.git*" "*.idea*" "composer.lock" ".gitignore" ".DS_Store" "conekta" | ||
|
||
# Target por defecto | ||
all: zip | ||
|
||
# Crea el archivo ZIP | ||
zip: $(FOLDER_NAME) | ||
zip -r $(ZIP_NAME) $(FOLDER_NAME) -x $(EXCLUDES) && rm -rf $(FOLDER_NAME) | ||
|
||
# Crea la carpeta conekta y mueve los archivos | ||
$(FOLDER_NAME): | ||
mkdir -p $@ | ||
cp -r ./* $@ # Copia todos los archivos al directorio conekta | ||
rm -rf $@/.git # Elimina la carpeta .git si existe | ||
rm -rf $@/.idea # Elimina la carpeta .idea si existe | ||
rm -f $@/composer.lock # Elimina el archivo composer.lock si existe | ||
rm -f $@/.gitignore # Elimina el archivo .gitignore si existe | ||
rm -f $@/.DS_Store # Elimina el archivo .DS_Store si existe | ||
|
||
# Clean para eliminar el ZIP y la carpeta temporal | ||
clean: | ||
rm -rf $(ZIP_NAME) $(FOLDER_NAME) | ||
|
||
.PHONY: zip |
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
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
Oops, something went wrong.