Summary
Some Boleto Bancário generated from ItauShopLine connector may have an expiration date different from the one configured in the affiliation
This happens because, to determine the expiration date, we look for a field in our code that says the date and time of the exact moment of creation of the slip and then we add up the number of days allowed for the boleto to expire. However, using the time zone GMT+0 and not Brazilian time zone (GMT-3) and then the boleto generated from 9 pm onwards consider the following day as the base day for this calculation, causing some Boletos Bancários to have one more day in the calculation of the due date
This problem was mapped from a case with ItauShopLine, but it can happen to others connectors, depending on purchases country and also from the particular functioning of each connector.
Simulation
- Go to affiliations and set up ItauShopLine with the
expireDays = 1
- Create a Payment Condition for the Boleto Bancário Payment Method to be processed by the ItauShopLine
- After 9 pm, Go to checkout and make a purchase with Boleto Bancário Payment Method
- Open the boleto bancário and observe the expire date
Workaround
N/A