feat: the Site takes credit card and PIX only, no debit
Dropstar does not take debit cards, and Mercado Pago never enabled debit on the account, so a customer who chose "Cartão de débito" met an error. The payment page offers credit card and PIX, the card form accepts only credit cards, and the server refuses a debit method sent around the page. The adapter still knows how to pay by debit, should it be offered again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -58,6 +58,10 @@ def run():
|
||||
assert not customer.call('/quotes/' + quote_id)['order'], 'unsigned delivery created an order'
|
||||
print('PASS: unsigned and tampered deliveries are refused and create nothing')
|
||||
|
||||
# Debit cards are not taken, even sent around the payment page.
|
||||
customer.call('/payments/intent', {'quote_id': quote_id, 'method': {
|
||||
'type': 'card', 'token': 'tok', 'payment_method_id': 'debvisa'}}, expected=422)
|
||||
|
||||
# Starting a PIX twice returns the same one. A card in review blocks every
|
||||
# further attempt, so one quote can never be charged twice.
|
||||
pix = customer.call('/payments/intent', {'quote_id': quote_id, 'method': {'type': 'pix'}})
|
||||
|
||||
Reference in New Issue
Block a user