Package: greencryptopay-py
Greencryptopay library for PythonThe Greencryptopay library for Python allows you to easily integrate the Greencryptopay payment system into your Python projects. This library provides convenient methods for interacting with the Greencryptopay API.InstallationYou can install this package using pip:pipinstallgreencryptopay-pyDependenciesThis package depends on the "requests" library version ^2.31.0. If it's not already installed, it will be automatically installed when you install this library.Standard APIStandard APIGetting Started:fromgreencryptopay_pyimportApi# Standard APIstandard_api=Api.standard()# Standard API testnetstandard_api=Api.standard(True)# Sign upifnotmerchant_idornotsecret_key:data=standard_api.merchant('percent','https://example.com/callback')merchant_id=data['merchant_id']secret_key=data['secret_key']standard_api.set_merchant_id(merchant_id)standard_api.set_secret_key(secret_key)Sign up:NameParametersValidationDescriptionmerchantstr fee_typestr callback_urlEnum: [percent, fix]Max: 200Fee typeURL to send notifications about paymentsOperations:NameParametersValidationDescriptionpayment_addressstr currencystr callback_urlstr orderIdstr currencyFromstr amountFromEnum: [btc]Max: 200Max: 50Enum: [usd]—CurrencyURL to send notifications about paymentsOrder identifier in your systemCurrency to convert fromAmount to convertwithdrawstr currencyarray recipientsEnum: [btc]—CurrencyArray structure:  [['address' => 'Recipient address', 'amount' => 'Recipient's amount']]withdraw_allstr currencystr recipientAddressEnum: [btc]—CurrencyRecipient addressStats:NameParametersValidationDescriptionmerchant_statestr currencyEnum: [btc]Currencymerchant_payment_addressstr currencystr / none from_timestampstr / none to_timestampint / none limitint / none pagestr / none orderEnum: [btc]Timestamp in UTCTimestamp in UTCMin:1, Max:200Min:1Enum: [asc, desc]CurrencyAddress creation timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")Address creation timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")Number of records in the responsePage numberRecords order ascending or descendingmerchant_incoming_paymentsstr currencystr / none payment_addressstr / none txidstr / none from_timestampstr / none to_timestampint / none limitint / none pagestr / none orderEnum: [btc]——Timestamp in UTCTimestamp in UTCMin:1, Max:200Min:1Enum: [asc, desc]CurrencyShow only payments to specific payment addressShow only payments with specific transactionPayment timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")Payment timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")Number of records in the responsePage numberRecords order ascending or descendingmerchant_withdrawalsstr currencystr / none from_timestampstr / none to_timestampint / none limitint / none pagestr / none orderEnum: [btc]Timestamp in UTCTimestamp in UTCMin:1, Max:200Min:1Enum: [asc, desc]CurrencyWithdrawal timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")Withdrawal timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")Number of records in the responsePage numberRecords order ascending or descendingpayment_address_callbacksstr currencystr payment_addressstr / none txidstr / none from_timestampstr / none to_timestampint  / none limitint  / none pagestr / none orderEnum: [btc]——Timestamp in UTCTimestamp in UTCMin:1, Max:200Min:1Enum: [asc, desc]CurrencyPayment addressShow only payment callbacks with specific transactionCallback timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")Callback timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")Number of records in the responsePage numberRecords order ascending or descendingpayment_address_statestr currencystr payment_addressEnum: [btc]—CurrencyPayment addressTransfer APITransfer APIGetting Started:fromgreencryptopay_pyimportApi# Transfer APItransfer_api=Api.transfer()# Transfer API testnettransfer_api=Api.transfer(True)# Sign upifnotmerchant_idornotsecret_key:data=transfer_api.merchant('percent','https://example.com/callback')merchant_id=data['merchant_id']secret_key=data['secret_key']transfer_api.set_merchant_id(merchant_id)transfer_api.set_secret_key(secret_key)Sign up:NameParametersValidationDescriptionmerchantstr fee_typestr callback_urlEnum: [percent, fix]Max: 200Fee typeURL to send notifications about paymentsOperations:NameParametersValidationDescriptionpayment_addressstr currencystr recipientAddressstr fee_typestr callback_urlstr orderIdstr currencyFromstr amountFromEnum: [btc]—Enum: [percent, fix]Max:200Max:50Enum: [usd, rub, try, eur, zar, gbp, uah, aud, brl, pln]—CurrencyRecipient addressFee typeURL to send notifications about paymentsOrder identifier in your systemCurrency to convert fromAmount to convertStats:NameParametersValidationDescriptionpayment_address_statestr currencystr payment_addressEnum: [btc]—CurrencyShow only payments to specific payment addresspayment_address_paymentsstr currencystr payment_addressstr / none txidstr / none from_timestampstr / none to_timestampint  / none limitint  / none pagestr / none orderEnum: [btc]——Timestamp in UTCTimestamp in UTCMin:1, Max:200Min:1Enum: [asc, desc]CurrencyPayment addressShow only specific transaction paymentsPayment timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")Payment timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")Number of records in the responsePage numberRecords order ascending or descendingpayment_address_callbacksstr currencystr payment_addressstr / none txidstr / none from_timestampstr / none to_timestampint  / none limitint  / none pagestr / none orderEnum: [btc]——Timestamp in UTCTimestamp in UTCMin:1, Max:200Min:1Enum: [asc, desc]CurrencyPayment addressShow only payment callbacks with specific transactionPayment timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")Payment timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")Number of records in the responsePage numberRecords order ascending or descendingmerchant_statestr currencyEnum: [btc]Currencymerchant_payment_addressstr currencystr / none from_timestampstr / none to_timestampint / none limitint / none pagestr / none orderEnum: [btc]Timestamp in UTCTimestamp in UTCMin:1, Max:200Min:1Enum: [asc, desc]CurrencyAddress creation timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")Address creation timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")Number of records in the responsePage numberRecords order ascending or descendingmerchant_paymentsstr currencystr / none txidstr / none from_timestampstr / none to_timestampint  / none limitint  / none pagestr / none orderEnum: [btc]—Timestamp in UTCTimestamp in UTCMin:1, Max:200Min:1Enum: [asc, desc]CurrencyShow only specific transaction paymentsPayment timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")Payment timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")Number of records in the responsePage numberRecords order ascending or descending