-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #281 from blockchyp/develop
Develop to Master
- Loading branch information
1 parent
d18c16c
commit a45304d
Showing
5 changed files
with
116 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import os | ||
|
||
import blockchyp | ||
|
||
# initialize a client. | ||
client = blockchyp.Client( | ||
api_key=os.environ["BC_API_KEY"], | ||
bearer_token=os.environ["BC_BEARER_TOKEN"], | ||
signing_key=os.environ["BC_SIGNING_KEY"], | ||
) | ||
|
||
# populate request parameters. | ||
request = { | ||
"profile": { | ||
"dbaName": "DBA Name", | ||
"companyName": "Corporate Entity Name", | ||
}, | ||
} | ||
|
||
# run the transaction. | ||
response = client.add_gateway_merchant(request) | ||
|
||
print("Response: %r" % response) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
|
||
# populate request parameters. | ||
request = { | ||
"merchantId": "XXXXXXXXXXXXX", | ||
} | ||
|
||
# run the transaction. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright 2019-2024 BlockChyp, Inc. All rights reserved. Use of this code is | ||
# governed by a license that can be found in the LICENSE file. | ||
# | ||
# This file was generated automatically by the BlockChyp SDK Generator. Changes | ||
# to this file will be lost every time the code is regenerated. | ||
import os | ||
import os.path | ||
import time | ||
import uuid | ||
import pkg_resources | ||
|
||
import pytest | ||
|
||
import blockchyp | ||
|
||
from .util import _get_test_client, _get_test_config | ||
|
||
|
||
@pytest.mark.itest | ||
def test_add_gateway_merchant(): | ||
"""Can add a gateway merchant.""" | ||
|
||
|
||
terminal = _get_test_config().get("defaultTerminalName") | ||
|
||
|
||
client = _get_test_client("partner") | ||
|
||
request = { | ||
"profile": { | ||
"dbaName": "DBA Name", | ||
"companyName": "Corporate Entity Name", | ||
}, | ||
} | ||
|
||
response = client.add_gateway_merchant(request) | ||
print("Response: %r" % response) | ||
|
||
assert response.get("success") is True |