Project description
Greencryptopay library for Node.js
The Greencryptopay library for Node.js allows you to easily integrate the Greencryptopay payment system into your Node.js projects. This library provides convenient methods for interacting with the Greencryptopay API.
Installation
You can install this package using npm:
npm install greencryptopay-nodejs --save
Dependencies
This package depends on the "node-fetch" library version ^2.6. If it's not already installed, it will be automatically installed when you install this library.
Standard API
Getting Started:
from tucha_test_new_package import Api
# Standard API
standard_api = Api . standard ()
# Standard API testnet
standard_api = Api . standard ( True )
# Sign up
if not merchant_id or not secret_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:
Name
Parameters
Validation
Description
merchant
string feeType string callbackUrl
Enum: [percent, fix] Max: 200
Fee type URL to send notifications about payments
Operations:
Name
Parameters
Validation
Description
paymentAddress
string currency string callbackUrl string orderId string currencyFrom string amountFrom
Enum: [btc] Max: 200 Max: 50 Enum: [usd] —
Currency URL to send notifications about payments Order identifier in your system Currency to convert from Amount to convert
withdraw
string currency array recipients
Currency Array structure: [['address' => 'Recipient address', 'amount' => 'Recipient's amount']]
withdrawAll
string currency string recipientAddress
Currency Recipient address
Stats:
Name
Parameters
Validation
Description
merchantState
merchantPaymentAddress
string currency string / none fromTimestamp string / none toTimestamp int / none limit int / none page string / none order
Enum: [btc] Timestamp in UTC Timestamp in UTC Min:1, Max:200 Min:1 Enum: [asc, desc]
Currency Address 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 response Page number Records order ascending or descending
merchantIncomingPayments
string currency string / none paymentAddress string / none txid string / none fromTimestamp string / none toTimestamp int / none limit int / none page string / none order
Enum: [btc] — — Timestamp in UTC Timestamp in UTC Min:1, Max:200 Min:1 Enum: [asc, desc]
Currency Show only payments to specific payment address Show only payments with specific transaction Payment 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 response Page number Records order ascending or descending
merchantWithdrawals
string currency string / none fromTimestamp string / none toTimestamp int / none limit int / none page string / none order
Enum: [btc] Timestamp in UTC Timestamp in UTC Min:1, Max:200 Min:1 Enum: [asc, desc]
Currency Withdrawal 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 response Page number Records order ascending or descending
paymentAddressCallbacks
string currency string paymentAddress string / none txid string / none fromTimestamp string / none toTimestamp int / none limit int / none page string / none order
Enum: [btc] — — Timestamp in UTC Timestamp in UTC Min:1, Max:200 Min:1 Enum: [asc, desc]
Currency Payment address Show only payment callbacks with specific transaction Callback 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 response Page number Records order ascending or descending
paymentAddressState
string currency string paymentAddress
Transfer API
Getting Started:
from tucha_test_new_package import Api
# Transfer API
transfer_api = Api . transfer ()
# Transfer API testnet
transfer_api = Api . transfer ( True )
# Sign up
if not merchant_id or not secret_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:
Name
Parameters
Validation
Description
merchant
string feeType string callbackUrl
Enum: [percent, fix] Max: 200
Fee type URL to send notifications about payments
Operations:
Name
Parameters
Validation
Description
paymentAddress
string currency string recipientAddress string feeType string callbackUrl string orderId string currencyFrom string amountFrom
Enum: [btc] — Enum: [percent, fix] Max:200 Max:50 Enum: [usd, rub, try, eur, zar, gbp, uah, aud, brl, pln] —
Currency Recipient address Fee type URL to send notifications about payments Order identifier in your system Currency to convert from Amount to convert
Stats:
Name
Parameters
Validation
Description
paymentAddressState
string currency string paymentAddress
Currency Show only payments to specific payment address
paymentAddressPayments
string currency string paymentAddress string / none txid string / none fromTimestamp string / none toTimestamp int / none limit int / none page string / none order
Enum: [btc] — — Timestamp in UTC Timestamp in UTC Min:1, Max:200 Min:1 Enum: [asc, desc]
Currency Payment address Show only specific transaction payments Payment 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 response Page number Records order ascending or descending
paymentAddressCallbacks
string currency string paymentAddress string / none txid string / none fromTimestamp string / none toTimestamp int / none limit int / none page string / none order
Enum: [btc] — — Timestamp in UTC Timestamp in UTC Min:1, Max:200 Min:1 Enum: [asc, desc]
Currency Payment address Show only payment callbacks with specific transaction Payment 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 response Page number Records order ascending or descending
merchantState
merchantPaymentAddress
string currency string / none fromTimestamp string / none toTimestamp int / none limit int / none page string / none order
Enum: [btc] Timestamp in UTC Timestamp in UTC Min:1, Max:200 Min:1 Enum: [asc, desc]
Currency Address 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 response Page number Records order ascending or descending
merchantPayments
string currency string / none txid string / none fromTimestamp string / none toTimestamp int / none limit int / none page string / none order
Enum: [btc] — Timestamp in UTC Timestamp in UTC Min:1, Max:200 Min:1 Enum: [asc, desc]
Currency Show only specific transaction payments Payment 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 response Page number Records order ascending or descending
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages .
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names .
The dropdown lists show the available interpreters, ABIs, and platforms.
Enable javascript to be able to filter the list of wheel files.
Copy a direct link to the current filters
Copy
File name
Interpreter
Interpreter
py3
ABI
ABI
none
Platform
Platform
any
File details
Details for the file tucha_test_new_package-1.0.0.tar.gz.
File metadata
Download URL: tucha_test_new_package-1.0.0.tar.gz
Upload date:
Feb 12, 2024
Size: 8.3 kB
Tags: Source
Uploaded using Trusted Publishing? No
Uploaded via: twine/5.0.0 CPython/3.11.3
File hashes
Hashes for tucha_test_new_package-1.0.0.tar.gz
Algorithm
Hash digest
SHA256
1dd841314e181bf61912be52fae615fd229a6575a504020341934fcb94088764
Copy
MD5
89f110ec99240e9060c887453ec86abb
Copy
BLAKE2b-256
71cd6f738684cd675162529e9264cf7bcb78102a7167d33a10df875b912c986a
Copy
See more details on using hashes here.
File details
Details for the file tucha_test_new_package-1.0.0-py3-none-any.whl.
File metadata
File hashes
Hashes for tucha_test_new_package-1.0.0-py3-none-any.whl
Algorithm
Hash digest
SHA256
0d7ea27cd99595886d459c7615d5bd6d9f42eb33f4871186ad176917ad401600
Copy
MD5
c28e885f2ea139099ec3e060316ea305
Copy
BLAKE2b-256
34901138ed425680e32de8450b02ea2a075dfb5ed5dde82f6a1cb611eca3823e
Copy
See more details on using hashes here.