diff --git a/tests/py/test_callbacks.py b/tests/py/test_callbacks.py index 547849d08b..a97a58b11d 100644 --- a/tests/py/test_callbacks.py +++ b/tests/py/test_callbacks.py @@ -94,7 +94,9 @@ def test_coinbase_success_callback(self, re): body = json.dumps({ "order": { "id": "10N9LK1Q", - "status": "completed", + "event": { + "type": "completed" + }, "total_native": { "cents": 100, "currency_iso": "USD" diff --git a/www/callbacks/coinbase.spt b/www/callbacks/coinbase.spt index 42e8c7859c..fd128b395c 100644 --- a/www/callbacks/coinbase.spt +++ b/www/callbacks/coinbase.spt @@ -32,7 +32,7 @@ if order: if not isinstance(route, ExchangeRoute): route = ExchangeRoute.insert(participant, 'coinbase-payin', order['id']) - status = order['status'] + status = order['event']['type'] # We're ignoring mispayments/expired orders here. if status == 'completed':