-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
3 changed files
with
11 additions
and
5 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 |
---|---|---|
|
@@ -78,14 +78,14 @@ from aaio import AAIO | |
|
||
|
||
async def main(): | ||
client = AAIO('MERCHANT ID', 'SECRET KEY', 'API KEY') | ||
client = AAIO('MERCHANT ID', 'SECRET KEY', api_key='API KEY') | ||
|
||
|
||
# New way to create payments | ||
payment_url = await client.get_pay_url(100, 'my_order_id', 'My order description', 'qiwi', '[email protected]', | ||
'referral code', currency='USD', | ||
language='en') | ||
print(payment_url['url']) # Prints payment url for customer | ||
print(payment_url) # Prints payment url for customer | ||
|
||
|
||
# DEPRECATED METHOD | ||
|
@@ -108,7 +108,7 @@ from aaio import AAIO | |
|
||
|
||
async def main(): | ||
client = AAIO('MERCHANT ID', 'SECRET KEY', 'API KEY') | ||
client = AAIO('MERCHANT ID', 'SECRET KEY', api_key='API KEY') | ||
payoff = await client.create_payoff('qiwi', 100.35, '79998887766', 'my_payoff_id') | ||
print(payoff.status) # in_progress | ||
|
||
|
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