mirror of
https://github.com/deesiigneer/pyspapi.git
synced 2026-04-20 12:35:26 +00:00
17 lines
428 B
Python
17 lines
428 B
Python
import pyspapi
|
|
import asyncio
|
|
|
|
api = pyspapi.API(card_id='card_id', token='token')
|
|
|
|
|
|
async def main():
|
|
print(await api.payment(amount=1,
|
|
redirect_url='https://www.google.com/',
|
|
webhook_url='https://www.google.com/',
|
|
data='some-data'
|
|
)
|
|
)
|
|
|
|
loop = asyncio.get_event_loop()
|
|
loop.run_until_complete(main())
|