-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca0a8d7
commit 15b8fc4
Showing
12 changed files
with
133 additions
and
20 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ GlobalPayments.Api.egg-info/ | |
__pycache__/ | ||
|
||
*.pyc | ||
MANIFEST | ||
dist/ |
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 @@ | ||
import api.builders |
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 |
---|---|---|
|
@@ -6,10 +6,17 @@ | |
|
||
setup( | ||
name='GlobalPayments.Api', | ||
version='1.0.0', | ||
version='1.0.1', | ||
author='Heartland Payment Systems', | ||
author_email='[email protected]', | ||
packages=[], | ||
packages=[ | ||
'globalpayments', 'globalpayments.api', 'globalpayments.api.builders', | ||
'globalpayments.api.builders.validations', | ||
'globalpayments.api.entities', | ||
'globalpayments.api.entities.table_service', | ||
'globalpayments.api.gateways', 'globalpayments.api.payment_methods', | ||
'globalpayments.api.services', 'globalpayments.api.utils' | ||
], | ||
scripts=[], | ||
url='https://developer.heartlandpaymentsystems.com/', | ||
license='LICENSE.md', | ||
|
Empty file.
40 changes: 40 additions & 0 deletions
40
tests/integration/gateways/payplan_connector/test_recurring.py
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,40 @@ | ||
''' | ||
Test Recurring | ||
''' | ||
import datetime | ||
import unittest | ||
from globalpayments.api import ServicesConfig, ServicesContainer | ||
from globalpayments.api.entities import RecurringPaymentMethod | ||
|
||
|
||
class IntegrationGatewaysPorticoConnectorDebitTests(unittest.TestCase): | ||
''' | ||
Ensure recurring transactions work | ||
''' | ||
|
||
config = ServicesConfig() | ||
config.secret_api_key = 'skapi_cert_MaePAQBr-1QAqjfckFC8FTbRTT120bVQUlfVOjgCBw' | ||
config.service_url = 'https://cert.api2.heartlandportico.com' | ||
|
||
ServicesContainer.configure(config, 'recurring') | ||
|
||
@staticmethod | ||
def payment_id(payment_type): | ||
return '{0}-GlobalApi-{1}'.format(datetime.date.today().isoformat(), payment_type) | ||
|
||
def test_check_crypto_gold_standard(self): | ||
gold_config = ServicesConfig() | ||
gold_config.secret_api_key = 'skapi_cert_MTyMAQBiHVEAewvIzXVFcmUd2UcyBge_eCpaASUp0A' | ||
gold_config.service_url = 'https://cert.api2-c.heartlandportico.com' | ||
|
||
ServicesContainer.configure(gold_config, 'gold standard') | ||
|
||
payment_method = RecurringPaymentMethod.find(self.payment_id('credit'), config_name='gold standard') | ||
self.assertNotEqual(None, payment_method) | ||
|
||
response = payment_method.charge(14.01)\ | ||
.with_currency('USD')\ | ||
.with_allow_duplicates(True)\ | ||
.execute('gold standard') | ||
self.assertNotEqual(None, response) | ||
self.assertEqual('00', response.response_code) |
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
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