This repository was archived by the owner on Mar 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
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
dd83941
commit f8b63b8
Showing
25 changed files
with
887 additions
and
155 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
include README.md | ||
include README.rst | ||
include LICENSE.txt |
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,4 @@ | ||
# | ||
# This file was auto-generated from the API references found at | ||
# https://epayments-api.developer-ingenico.com/s2sapi/v1 | ||
# |
34 changes: 34 additions & 0 deletions
34
examples/merchant/installments/get_installments_info_example.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,34 @@ | ||
# | ||
# This class was auto-generated from the API references found at | ||
# https://epayments-api.developer-ingenico.com/s2sapi/v1/ | ||
# | ||
import os | ||
|
||
from ingenico.connect.sdk.factory import Factory | ||
from ingenico.connect.sdk.domain.definitions.amount_of_money import AmountOfMoney | ||
from ingenico.connect.sdk.domain.installments.get_installment_request import GetInstallmentRequest | ||
|
||
|
||
class GetInstallmentsInfoExample(object): | ||
|
||
def example(self): | ||
with self.__get_client() as client: | ||
amount_of_money = AmountOfMoney() | ||
amount_of_money.amount = 123 | ||
amount_of_money.currency_code = "EUR" | ||
|
||
body = GetInstallmentRequest() | ||
body.amount_of_money = amount_of_money | ||
body.bin = "123455" | ||
body.country_code = "NL" | ||
body.payment_product_id = 123 | ||
|
||
response = client.merchant("merchantId").installments().get_installments_info(body) | ||
|
||
def __get_client(self): | ||
api_key_id = os.getenv("connect.api.apiKeyId", "someKey") | ||
secret_api_key = os.getenv("connect.api.secretApiKey", "someSecret") | ||
configuration_file_name = os.path.abspath(os.path.join(os.path.dirname(__file__), | ||
'../../example_configuration.ini')) | ||
return Factory.create_client_from_file(configuration_file_name=configuration_file_name, | ||
api_key_id=api_key_id, secret_api_key=secret_api_key) |
Oops, something went wrong.