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.
simple-stripe-client
Advanced tools
A simple lightweight api client for awesome stripe.
import simple_stripe_client
import os
STRIPE_SECRET_KEY = os.environ.get('STRIPE_SECRET_KEY')
# create client
stripe_api = simple_stripe_client.Api(STRIPE_SECRET_KEY, debug_http=True)
CHARGE_DATA = {
'amount': 15921,
'currency': 'gbp',
'capture' : False,
'source': 'tok_amex',
'metadata': {
'first_name' : 'Sachin',
'last_name' : 'Tendulkar',
}
}
# Creating Charge
charge = stripe_api.charges.post(**CHARGE_DATA)
CHARGE_ID = 'ch_xxx'
# Fetching Charge
charge = stripe_api.charges.id(CHARGE_ID).get()
# Update Charge
charge = stripe_api.charges.id(CHARGE_ID).post(description='Test Update')
# Capture Charge
charge = stripe_api.charges.id(CHARGE_ID).capture.post(amount=12000)
URLs would match one-to-one to stripe's curl api urls. For more links please refer to stripe doc
stripe_api.charges # == /v1/charges
stripe_api.charges.id(CHARGE_ID) # == /v1/charges/{CHARGE_ID}
stripe_api.customers # == /v1/customers
stripe_api.customers.id(CUSTOMER_ID) # == /v1/customers/{CUSTOMER_ID}
stripe_api.invoices # == /v1/invoices
stripe_api.invoices.id(INVOICE_ID) # == /v1/invoices/{INVOICE_ID}
FAQs
A simple lightweight api client for awesome stripe
We found that simple-stripe-client 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.