This repository was archived by the owner on May 26, 2025. It is now read-only.
fix: automatic payments (MercadoPago and PagSeguro) - #8
Open
brenozd wants to merge 17 commits into
Open
Conversation
abstracting update and approval of payments
to pagseguro
adding max_parcelas to .env commented pagseguro lightbox from paymentsummary.html.twig
dudantas
suggested changes
May 8, 2023
dudantas
left a comment
Member
There was a problem hiding this comment.
Please consider changing the places where there is a mixture of English/Portuguese, I noticed two cases and already suggested changing, maybe there are more. Thanks for the attention.
Co-authored-by: Eduardo Dantas <[email protected]>
Co-authored-by: Eduardo Dantas <[email protected]>
Co-authored-by: Eduardo Dantas <[email protected]>
Co-authored-by: Eduardo Dantas <[email protected]>
|
SonarCloud Quality Gate failed.
|
|
This PR is stale because it has been open 45 days with no activity. |
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.









This PR fixes the automatic delivery of coins (lucasgiovannibr/canaryaac#6) that were paid via MercadoPago or PagSeguro.
Besides that, it handles the automatic Refunded and ChargedBack payments.
Things that are included in this PR that is not related to automatic delivery:
Net and gross amount of payments available at admin donation dashboard
Places where 12h format was used changed to 24h hour format
Inserting coin received event into store_history table, so the player can see when the coins were received
Setting PagSeguro payment methods to CreditCard, Boleto, and Wallet Balance
Excluding the Ticket payment methods from MercadoPago
Commented PagSeguro lightbox from paymentsummary.html.twig since it's not in use not
Updating PagSeguro and MercadoPago SDK to the latest versions (6.0 and 2.4.2 respectively)
Setting MercadoPago sandbox and MercadoPago max Installments trough ENV
Columns house_id and town_id from table house now have a default value of 0 (it was giving some errors on canary shutdown)
Did not change anything on the PayPal side because its SDK is deprecated, besides that MercadoPago allows to pay with PayPal wallet.
Tested with PHP 8.1 at Debian 11 using MercadoPago and PagSeguro sandbox environments.