diff --git a/sql/branch.sql b/sql/branch.sql index 13a43590d4..e85bb51778 100644 --- a/sql/branch.sql +++ b/sql/branch.sql @@ -1 +1 @@ -ALTER TYPE payment_net ADD VALUE 'bitcoin-payin'; +ALTER TYPE payment_net ADD VALUE 'coinbase-payin'; diff --git a/tests/py/test_callbacks.py b/tests/py/test_callbacks.py index 88c9feaff5..e0d3ddea26 100644 --- a/tests/py/test_callbacks.py +++ b/tests/py/test_callbacks.py @@ -111,7 +111,7 @@ def test_coinbase_success_callback(self, re): assert r.code == 200, r.body # Must create a route - route = ExchangeRoute.from_address(alice, 'bitcoin-payin', '10N9LK1Q') + route = ExchangeRoute.from_address(alice, 'coinbase-payin', '10N9LK1Q') assert isinstance(route, ExchangeRoute) assert re.call_count == 1 diff --git a/www/callbacks/coinbase.spt b/www/callbacks/coinbase.spt index 2082e4bdc9..abbbdd8872 100644 --- a/www/callbacks/coinbase.spt +++ b/www/callbacks/coinbase.spt @@ -26,11 +26,11 @@ if order: participant = Participant.from_id(int(order['custom'])) # Check if a route corresponding to the order ID already exists. - route = ExchangeRoute.from_address(participant, 'bitcoin-payin', order['id']) + route = ExchangeRoute.from_address(participant, 'coinbase-payin', order['id']) # If not, create one. if not isinstance(route, ExchangeRoute): - route = ExchangeRoute.insert(participant, 'bitcoin-payin', order['id']) + route = ExchangeRoute.insert(participant, 'coinbase-payin', order['id']) status = order['status']