Saravanan666/pypi-org huggingface dataset:
Package: payabbhi
Payabbhi Python package provides client library for Payabbhi API’sSetupYou can install this package by using the pip tool and installing:$ pip install payabbhiSetting up a Payabbhi AccountSign up for Payabbhi athttps://payabbhi.com/identity/users/sign_up.Using the Payabbhi APIDocumentation for the python bindings can be found at:https://payabbhi.com/docshttps://payabbhi.com/docs/api/?python
Package: payable-subscriptions
payable-subscriptionsPyPI ProjectThis builds upon the subscription and recurrent billing fromdjango-flexible-subscriptionswith supported payment vendors, such as Venmo.Integrates out-of-the-box payment processing fordjango-flexible-subscriptions.NOTE: Currently, only Venmo is supported.Automatically update Google Contact Group based on subscription status (new or expired)Quick startAddpayablesubs(andsubscriptions) to yourINSTALLED_APPSsetting like this:INSTALLED_APPS = [
        ...
        'subscriptions',
        'payablesubs',
    ]Injectpayablesubscustom manager class by adding this in settings file:DFS_MANAGER_CLASS = "payablesubs.management.commands._payable_manager.PayableManager"Include the polls URLconf in your projecturls.pylike this:path('subscriptions/', include('subscriptions.urls')),Runpython manage.py migrateto create the models.Start the development server and visithttp://127.0.0.1:8000/subscriptions/dfs/subscriptionsto view the subscriptions dashboard. NOTE: You need to create and login with a superuser account.Seedjango-flexible-subscription documentationfor more details.Create your Venmo access token followingthese instructions. Save the token to a file:.credentials/venmo.tokenAutomate sending and processing payments by calling$> python manage.py process_subscriptionsOptional SettingsThe following can be set either directly in your settings file, or via environment propertiesPAYABLESUBS_BILLING_ENABLED: if disabled, payment requests will not be sent. Helpful for testing.PAYABLESUBS_DRY_RUN: processes subscriptions, but doesn't persistBills or send payment requests. Helpful for testing.PAYABLESUBS_GOOGLE_CONTACT_LABEL: The Google contact group label associated with active subscriptions. If not set, Google integration is disabled.if enabled, ensure.credentials/credentials.jsonexists. SeeGoogle People Python QuickstartLibraries UsedVenmo API
Package: payback-coupon-activator
Payback Coupon ActivatorActivates all Payback coupons with Selenium WebDriver in Chrome logged into your Payback account.InstallationInstallChromeLog in to yourPaybackaccount permanentlyInstall this package:pip install payback-coupon-activatorUsageClose ChromeExecutepayback-coupon-activatorSupportCreate anissuefor problems, improvements, differentbrowsersoroperating systems
Package: paybybot
Simple bot that sends you an email when you didn’t pay your parking onhttps://www.paybyphone.fr/Installation on a Raspberry PI (about 30 minutes)Install ChromiumFirefox doesn’t support headless mode on Debian yet.sudo apt-get install chromium-browserInstall ChromedriverGo to the page of the latestarmhfbuild onhttps://launchpad.net/ubuntu/trusty/+package/chromium-chromedriverUse this link inwget http://launchpadlibrarian.net/361669488/chromium-chromedriver_65.0.3325.181-0ubuntu0.14.04.1_armhf.debInstall gdebisudo apt-get install gdebiInstall chromedriversudo gdebi chromium-chromedriver*.debPut chromedriver in your pathsudo mv /usr/lib/chromium-browser/chromedriver /usr/bin/chromedriverSources:https://www.reddit.com/r/selenium/comments/7341wt/success_how_to_run_selenium_chrome_webdriver_on/https://superuser.com/a/196867/541587Install pipsudo apt-get install python3-pipInstall paybybotpip3 install paybybot
# next line is there to find the paybybot command
echo 'export PATH=~/.local/bin:$PATH' >> .bashrcConfigure your credentialsIn ~/.paybybot:{Your phone number}:{PayByPhone password}In ~/.email-creds:{Your email address}:{Email password}For your email account, I advise you to use an app password. Seehereto
configure one in Gmail.Add a cron taskcrontab -eand write50 8 * * * ~/.local/bin/paybybotto run paybybot everyday at 8:50Configure your timezone correctlyFor bothcrontaband the logs.sudo raspi-configthenLocalisation Options > Change Timezone
Package: paybybot3
PayByBot 3Originally forked frompaybybot2, this packages implements a CLI interface topaybyphone, allowing you (for example) to automate parking.Installationpip install paybybot3UsageCONFIG_NAMEis the name of your configuration, it would beexample_accountin the example configuration below.--locationis often the district (eg75001). There are some special values that you can find out in the output ofcheckaslocationId.Similarly, you can find--rateasrateOptionIdin the output ofcheck.alertUsage: paybybot3 alert [OPTIONS] CONFIG_NAME

  1. Check if there is an ongoing subscription

  2. Else send a notification

Options:
  --location TEXT
  --config TEXT
  --help           Show this message and exit.checkUsage: paybybot3 check [OPTIONS] CONFIG_NAME

  Check if there is an ongoing subscription

Options:
  --location TEXT
  --config TEXT
  --help           Show this message and exit.payUsage: paybybot3 pay [OPTIONS] CONFIG_NAME

  1. Check if there is an ongoing subscription

  2. Else pay

  3. Check that the payment succeeded

  4. Notify on failure

Options:
  --location TEXT  [required]
  --rate INTEGER   [required]
  --duration TEXT  [required]
  --buffer BOOLEAN
  --config TEXT
  --help           Show this message and exit.vehiclesUsage: paybybot3 vehicles [OPTIONS] CONFIG_NAME

  1. Show the vehicles

Options:
  --config TEXT
  --help           Show this message and exit.payment-accountsUsage: paybybot3 payment-accounts [OPTIONS] CONFIG_NAME

  Show the payment accounts

Options:
  --config TEXT
  --help         Show this message and exit.Configurationpaybybot3 allows you to store your configuration in a YAML file~/.config/paybybot3.yml.Here is an example:example_account:
  plate: AB123CD
  paybyphone:
    login: "+330612345678"
    password: password
  apprise: #optional
    services:
      - mail:
          service_url: "mailtos://{user}:{password}@{domain}?name=PayByBot3"
          tag:
            - "broadcast-warning"
            - "broadcast-failure"
      - discord:
          service_url: "discord://{WebhookID}/{WebhookToken}"
          tag:
            - "broadcast-info"
            - "broadcast-success"
            - "broadcast-warning"
            - "broadcast-failure"
      - ...
  paymentAccountId: "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"Notifications are delivered through theAppriselibrary.Ifappriseis configured, at least one service must be configured. Service URLs can be found in the Apprisenotification services documentation- refer to their documentation for required and additional parameters. Tags are mandatory and must at least be one ofbroadcast-info,broadcast-success,broadcast-warningorbroadcast-failure, they are used to filter the notifications you want to receive.ThepaymentAccountIdcan be found in the output of thepayment-accountscommand.
Package: pay-by-square
PAY by squareGenerate codes forby squarepayments.InstallationNote:pay-by-squaregenerates string that can be passes to QR code generator to create
image. To run example below, you need to installqrcode moduleas well.pipinstallpay-by-squareUsageAPIpay_by_square.generate(
    *,
    amount: float,
    iban: str,
    swift: str = '',
    date: Optional[date] = None,
    beneficiary_name: str = '',
    currency: str = 'EUR',
    variable_symbol: str = '',
    constant_symbol: str = '',
    specific_symbol: str = '',
    note: str = '',
    beneficiary_address_1: str = '',
    beneficiary_address_2: str = '',
) -> str:
    Generate pay-by-square code that can by used to create QR code for banking apps

    When date is not provided current date will be used.Exampleimportqrcodeimportpay_by_squarecode=pay_by_square.generate(amount=10,iban='SK7283300000009111111118',swift='FIOZSKBAXXX',variable_symbol='47',)print(code)img=qrcode.make(code)img.show()Testingpython-munittesttests.pyKudos toguys from devel.cz
Package: pay-ccavenue
pay_ccavenueA simple package to integrate CCAvenue. It can be used for bothiframeandseemlessmethods.How to installpipinstallpay_ccavenueImportfrompay_ccavenueimportCCAvenueInitialize the PackageWe can either setup via the environment or by passing the credentials directly to the plugin.Via the environment variablesSet the credentials in the environment variablesSetCCAVENUE_WORKING_KEYfor theWORKING_KEYSetCCAVENUE_ACCESS_CODEfor theACCESS_CODESetCCAVENUE_MERCHANT_CODEfor theMERCHANT_CODESetCCAVENUE_REDIRECT_URLfor theREDIRECT_URLSetCCAVENUE_CANCEL_URLfor theCANCEL_URLAnd then instantiate theCCAvenueobject as shown belowccavenue=CCAvenue()Pasing the credentials directlyccavenue=CCAvenue(WORKING_KEY,ACCESS_CODE,MERCHANT_CODE,REDIRECT_URL,CANCEL_URL)NOTEYou don't need to explicitely passWORKING_KEY,ACCESS_CODE,MERCHANT_CODE,REDIRECT_URL,CANCEL_URLin the form data for any of the method i.e.Iframeorseemless.To encrypt the dataform_datais the post request body which is a dictionary of the related data for the payment. You don't need to pass the Merchant ID though. Since we have already intiated the package with the correctMERCHANT_CODE.encrypt()method return the encrypted string that can be ussed directly in the Iframe rendering.encrypt_data=ccavenue.encrypt(form_data)Pass theencrypt_datafrom the above to the view to render the IFrame.Decrypt the data received from the CCAvenueform_datais the post request body which is a dictionary of the related data received from the CCAvenue. Thedecrypt()method returns the dictionary of the data received from the CCAvenue.decrypted_data=ccavenue.decrypt(form_data)LimitationsI have not added any tests as of now in the package, but I have tested this out for my project after debugging their given examples and Stackoverflow to simplify it.More detailed documentation.
Package: paycek
PaycekThis is an official package for thePaycek crypto payment processor. The documentation provided in code explains only minor implementation details.For in depth information about endpoints, fields and more, read ourAPI Documentation.Quick StartInstallationInstall package with pip.pipinstallpaycekInitializationUnder account settings you’ll find your API key and secret. Initialize a paycek instance.frompaycekimportPaycekpaycek=Paycek('<api_key>','<api_secret>')UsageGet paymentpayment=paycek.get_payment('<payment_code>')Open paymentpayment=paycek.open_payment('<profile_code>','<dst_amount>','<location_id>')
Package: paydunya
This is a Python library for accessing the PAYDUNYA HTTP API.Installation$sudopipinstallpaydunya$ORgitclonehttps://github.com/paydunyadev/paydunya-python-master.git$cdpaydunya-python-master;pythonsetup.pyinstall$noseteststests/# run unit testsRead aboutnosetestsUsageimportpaydunyafrompaydunyaimportInvoiceItem,Store# runtime configsPAYDUNYA_ACCESS_TOKENS={'PAYDUNYA-MASTER-KEY':"Your PAYDUNYA master key",'PAYDUNYA-PRIVATE-KEY':"Your PAYDUNYA private key",'PAYDUNYA-TOKEN':"Your PAYDUNYA token"}# defaults to Falsepaydunya.debug=True# set the access/api keyspaydunya.api_keys=PAYDUNYA_ACCESS_TOKENS# Invoicestore=Store(name='Magasin Chez Sandra')items=[InvoiceItem(name="Clavier DELL",quantity=2,unit_price="3000",total_price="6000",description="Best Keyboard of the 2015 year"),InvoiceItem(name="Ordinateur Lenovo L440",quantity=1,unit_price="400000",total_price="400000",description="Powerful and slim"),]invoice=paydunya.Invoice(store)invoice.add_items(items)# taxes are (key,value) pairsinvoice.add_taxes([("Other TAX",5000),("TVA (18%)",700)])invoice.add_custom_data([("first_name","Alioune"),("last_name","Badara"),("cart_id",97628),("coupon","NOEL"),])# you can also pass the items, taxes, custom to the `create` methodsuccessful,response=invoice.create()ifsuccessful:do_something_with_resp(response)# confirm invoiceinvoice.confirm('YOUR_INVOICE_TOKEN')# PSRopr_data={'account_alias':'EMAIL_OU_NUMERO_DU_CLIENT_PAYDUNYA','description':'Hello World','total_amount':6500}store=paydunya.Store(name='Magasin Chez Sandra')opr=paydunya.OPR(opr_data,store)# You can also pass the data to the `create` functionsuccessful,response=opr.create()ifsuccessful:do_something_with_response(response)status,_=opr.charge({'token':token,'confirm_token':user_submitted_token})# Direct Payaccount_alias="EMAIL_OU_NUMERO_DU_CLIENT_PAYDUNYA"amount=6500# toggle debug switch to Truedirect_pay=paydunya.DirectPay(account_alias,amount)status,response=direct_pay.process()Licensesee LICENSE.txtContributingIssues, forks, and pull requests are welcome!NoteSome of the API calls require formal approval from PAYDUNYAFor more information, please read thePAYDUNYA HTTP APITested on Python 2.7, and 3+.AuthorsPAYDUNYA <paydunya@paydunya.com>
Package: payeer-api
================payeer_api================payeer_api - Реализация клиента для Payeer API.До использования следует ознакомиться с официальной документациейPayeer (https://payeercom.docs.apiary.io/). Приложение реализуетпротокол взаимодействия, описанный в этом документе.Установка=========::$ pip install payeer_apiИспользование=============Пример::from payeer_api import PayeerAPIaccount = 'P1000000'api_id = '123456789'api_pass = 'KRicaFodFrgJer6'p = PayeerAPI(account, api_id, api_pass)p.get_balance()
Package: payeer-pyapi
payeer_apiConnecting the Payeer payment system to your productGuide on connecting Payeer to your systemEach response from the Payeer server necessarily contains the auth_error field, which shows whether the authentication parameters are specified correctly. The response to the request also contains an array of errors, which indicates the presence of errors in the execution of the request.If you have any questions about these errors,look hereGetting started with the APITo work with the API, you need to go to your personalaccountclick on the "Activation" button in the right column.Fill in the user name, generate a secret key for working with the API and for additional security, enter the IP address from which you will send requests to the Payeer server.:exclamation:AttentionDo not tell anyone the secret key for the API.After adding the API, you are given a user ID that you need to use, together with the key and account number, for authentication in requests.Setup$pip install payeer_pyapiExamplesLet's try to check the validity of the walletfrom payeer_pyapi import PayeerApi

wallet = "P10000000000"

app = PayeerApi(account="P100101010", api_id=12345678, api_pass="SecretKey")

print(app.check_wallet_available(wallet))

Output -> FalseLet's try to get automatic conversion rates by default get withdrawal ratesprint(app.conversion_rates())

Output -> {'RUB/USD': '0.01307531', 'RUB/EUR': '0.01127733', 'USD/RUB': '68.94017', 'USD/EUR': '0.81903631', 'EUR/USD': '1.10190475', 'EUR/RUB': '79.963685'}If we changeoutputparameter, we get entry coursesprint(app.conversion_rates(output="N"))

Output -> {'RUB/USD': '0.01446907', 'RUB/EUR': '0.01247441', 'USD/RUB': '76.2888', 'USD/EUR': '0.90561469', 'EUR/USD': '1.21740517', 'EUR/RUB': '88.45179'}FAQWhen requesting the API, I get the error "auth error: account or apiId or apiPass is incorrect or api-user was blocked"Check the correctness of the account number, user-id and secret key, as well as the disabled blocking of the user in the settings of mass payments.I can't get rid of the error "IP 1.2.3.4 does not satisfy the security settings"Specify the IP that is returned in error in the settings of mass payments and repeat the request.After a while, the error "AUTH error: account or apiId or apiPass is incorrect or api-user was blocked" appears again, although no settings have been changedAfter a certain number of authorization attempts with an incorrect api secret key, the user is blocked, you can unlock it in the settings of mass payments. You may not have changed the secret key in all places on your site, or someone is trying to find a password for your API:Delete the old api userCreate a new one with IP protectionWrite down the new access data on your websiteMy website was hacked and all the money was withdrawn through the APIFor additional security, you can use a second account for payments, where you can keep the amount necessary for transfers in the short term. Please do not neglect the security audits of your site.
Package: payeezy
PayeezyThis is anunofficialpackage-to-be for processing transactions withPayeezyusing Python3.6>>>transaction=api.process_purchase(transaction_total='2499',card_type='VISA',card_number='4005519200000004',card_expiry='1218',card_cvv='123',cardholder_name='Donald Duck',merchant_reference='Sale')Installation:$pipinstallpayeezyUsage:Seeexample.pyFunctions supported:Credit Card Payments: Purchase/AuthorizeCheck the status of the submitted transactionCheck error messages for failed transaction
Package: payfast-client
payfast-python-clientAsynchronous Python Client for thePayfast APIUsesrequests-futuresInstallationAvailable onPyPipipinstallpayfast-clientUsagefrompayfast_clientimportPayfastClientclient=PayfastClient(merchant_id=123,merchant_passphrase="passphrase")subscription=client.fetch_subscription(token="abc")print(subscription)<Future at 0x107d88520 state=finished returned Response>print(subscription.result())<Response [200]>FeaturesSignature GenerationError Handling (Sometimes errors returned with response_code=200)EndpointsGET /pingRecurring BillingGET   /subscriptions/:token/fetchPUT   /subscriptions/:token/pausePUT   /subscriptions/:token/unpausePUT   /subscriptions/:token/cancelPATCH /subscriptions/:token/updatePOST  /subscriptions/:token/adhocTransaction HistoryGET   /transactions/historyGET   /transactions/history/dailyGET   /transactions/history/weeklyGET   /transactions/history/monthlyCredit card transaction queryGET   /process/query/:id
Package: payflow
Alpha releaseWorks for make a payment
Usage:from .pyflow.client import Clientclient = Client(
'flow_api_key',
'flow_private_key',
'flow_enviroment_url',
True, #test Mode
)post = {
'email': 'testclient@test.tld',
'amount': 500,
'commerceOrder': 'code_comerce',
'subject': 'so1',
'paymentMethod': 9,
'urlConfirmation': 'url.tld/confirm',
'urlReturn': 'url.tld/return',}client.payments.post(post)
Package: paygo-utils
Copyright 2021 PAYG-UTILSPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.Change log0.0.1 (05/Feb/2021)SetupInstall via pip;pip install paygo-utilsAdd it to installed apps in django settings.py;INSTALLED_APPS =
(
‘paygo_utils’,
….
)This library contains the following;Constants;This contains general application constants like RecordStatus, SeverityLevel, LogStatus, Gender, etcDate processing;This can be located in file dateutils.pyExceptions;This file contain general application exception definitions which includeGenericExceptionInvalidCredentialsExceptionInvalidOrganizationExceptionNullObjectExceptionValidationFailedExceptionOperationFailedExceptionNumeric processing;This contains alithmetic operations that can be performed on numeric values.
These include but not limited to add, subtract, divide, multiply, etcUtilities;This file contains general utility functions that cut around different projects/microservices
Package: payit
Online payment gateways wrapper library. 💳Supported Gateways(Iran)AqayepardakhtAsanPardakhtBahamtaIranKishMellatParsian (PECCO)Pay.irZarinpalInstallpipinstallpayitUsagefrompayitimport(GatewayManager,gateways,Transaction,TransactionAlreadyPaidError)# Configure:config={'mellat':{'terminal_id':'1234','username':'demo','password':'demo','callback_url':'http://localhost/callback/mellat'},'zarinpal1':{'merchant':'534534534532225234234','description':'','callback_url':'http://localhost/callback/zarinpal1'},'zarinpal2':{'merchant':'33333333532225234234','description':'','callback_url':'http://localhost/callback/zarinpal2'}}manager=GatewayManager()manager.register('mellat',gateways.MellatGateway)manager.register('zarinpal1',gateways.ZarinpalGateway)manager.register('zarinpal2',gateways.ZarinpalGateway)manager.configure(config)# Make Transaction:my_database={}selected_gateway='zarinpal1'try:transaction=Transaction(amount=1500,order_id=11002)transaction=manager.request(selected_gateway,transaction)# Store `transaction.id` on your databasemy_database['transaction_id']=transaction.id# Get redirection detailsredirection=manager.get_redirection(selected_gateway,transaction)# Now redirect your client to gateway by redirection detailsexceptPayitException:print('Something wrong on payment')raise# Callback# Now user backs from gateway to complete payment procedureselected_gateway='zarinpal1'try:callback_data={'Authority':101}transaction=manager.validate(selected_gateway,callback_data)ifnottransaction.validate_status:raiseRuntimeError('Transaction is not valid')# Check `transaction.id` exist on your databaseiftransaction.idnotinmy_database:raiseRuntimeError('Transaction is not exists')# Now verify transactionmanager.verify(selected_gateway,callback_data)exceptTransactionAlreadyPaidError:print('Transaction Already Paid')raiseexceptPayitException:print('Something wrong on payment')raise# Payment succeed! 🎉