fix: card goes back to forma de recebimento 977460722, which Tiny accepts; 919478945 is not enabled there (DTF-API-C)
All checks were successful
Build and deploy / Validate source (push) Successful in 54s
Build and deploy / Integration suite on a real stack (push) Successful in 8m24s
Build and deploy / Secret scan and release gate (push) Successful in 11s
Build and deploy / Publish images (push) Successful in 1m38s
All checks were successful
Build and deploy / Validate source (push) Successful in 54s
Build and deploy / Integration suite on a real stack (push) Successful in 8m24s
Build and deploy / Secret scan and release gate (push) Successful in 11s
Build and deploy / Publish images (push) Successful in 1m38s
Tiny refused a paid Site order with "Forma de recebimento não está habilitada" after card moved to 919478945. The order waits in the outbox and goes through on its next try. The MERCADO PAGO account stays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -485,9 +485,10 @@ class TinyStatusTests(FakeTinyCase):
|
||||
self.assertEqual(pickup['pagamento'], {'categoria': {'id': CATEGORY}, 'formaRecebimento': {'id': RECEIPT_METHODS['pix']},
|
||||
'parcelas': [{'dias': 0, 'data': '2026-09-24', 'valor': 84.72, 'formaRecebimento': {'id': RECEIPT_METHODS['pix']},
|
||||
'meioPagamento': {'id': 977344550}}]})
|
||||
# The forma de recebimento ids Marcus listed on 2026-12-01.
|
||||
# The forma de recebimento ids: card stays the one Tiny accepts, 977460722;
|
||||
# 919478945, which Marcus named on 2026-12-01, is not enabled (DTF-API-C).
|
||||
self.assertEqual((RECEIPT_METHODS['pix'], RECEIPT_METHODS['card'], RECEIPT_METHODS['credit']),
|
||||
(919478952, 919478945, 987762591))
|
||||
(919478952, 977460722, 987762591))
|
||||
# Delivery: the Correios contract's PAC or SEDEX, or Jadlog; the date in working days.
|
||||
for service, method, frete in (('pac', 78, 781), ('sedex', 78, 782), ('jadlog', 80, 801)):
|
||||
order = {**PAID['order'], 'freight': {'service': service, 'total_cents': 1500, 'days': 6}}
|
||||
|
||||
Reference in New Issue
Block a user