Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A Python package designed for seamless integration with the Paylink API, ideal for developers who want to incorporate Paylink's payment processing capabilities into their applications effortlessly. It offers straightforward functionality for adding and retrieving invoices.
This package is ideal for Python developers looking to integrate Paylink's payment processing capabilities into their applications with minimal effort. It provides functionality to add and retrieve invoices.
You can install the package using pip:
pip install paylink-package==1.0.6
from paylink import Paylink, PaylinkProduct
# For Development & Test
paylink = Paylink.test()
# For Production
paylink = Paylink.production(api_id='xxxxx', secret_key='xxxxx')
# Add Invoice
invoice_details = paylink.add_invoice(
amount=10,
client_mobile='966123456789',
client_name='John Doe',
order_number='1234567890',
products=[
PaylinkProduct(title='Hand bag', price=4, qty=1),
PaylinkProduct(title='Book', price=3, qty=2),
],
callback_url='https://paylink.sa/test-python-sdk',
currency='USD',
)
print(invoice_details)
print('Transaction No:', invoice_details.transaction_no)
print('Payment Url:', invoice_details.url)
# Get Invoice
invoice_details = paylink.get_invoice(transaction_no=17214351564123)
print('Payment Status:', invoice_details.order_status)
print('Payment Url:', invoice_details.url)
# Cancel Invoice
cancellation_success = paylink.cancel_invoice(transaction_no=17214351564123) # true-false
# Payment Status
status = paylink.order_status(transaction_no=17214351564123)
print('Payment Status:', status)
The Paylink Python package provides a comprehensive integration with the Paylink Payment Gateway, enabling developers to create, manage, and track payment invoices easily. Key features include:
Environment Configuration:
Authentication:
Invoice Management:
Product Management:
Comprehensive Response Handling:
Error Handling:
Ease of Use:
test
and production
).1.0.6
cancel_invoice
to cancel an existing invoice using the Paylink API.1.0.5
1.0.4
PaylinkProduct
class to create and manage product objects with attributes such as title, price, quantity, description, VAT, and options for digital products.PaylinkInvoiceResponse
class to parse and handle responses from the Paylink API. This includes managing transaction details, order status, payment errors, and other relevant information.FAQs
A Python package designed for seamless integration with the Paylink API, ideal for developers who want to incorporate Paylink's payment processing capabilities into their applications effortlessly. It offers straightforward functionality for adding and retrieving invoices.
We found that paylink-package demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.