Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
This is a preview of how PayPal SDKs will look in the next major version. We've simplified the interface to only provide HTTPRequest that can easily be called via our HttpClient.
Please see the CHANGELOG.md for the latest changes.
require 'paypal-sdk-rest'
include PayPal::V1::Payments
environment = PayPal::SandboxEnvironment.new('AdV4d6nLHabWLyemrw4BKdO9LjcnioNIOgoz7vD611ObbDUL0kJQfzrdhXEBwnH8QmV-7XZjvjRWn0kg', 'EPKoPC_haZMTq5uM9WXuzoxUVdgzVqHyD5avCyVC1NCIUJeVaNNUZMnzduYIqrdw-carG9LBAizFGMyK')
client = PayPal::PayPalHttpClient.new(environment)
payment = {
:intent => "sale",
:transactions => [
:amount => {
:currency => "USD",
:total => "10"
}
],
:redirect_urls => {
:cancel_url => "http://example.com/cancel",
:return_url => "http://example.com/return"
},
:payer => {
:payment_method => "paypal"
}
}
request = PaymentCreateRequest.new
request.request_body(payment);
begin
response = client.execute(request)
puts response.status_code
puts response.result
rescue BraintreeHttp::HttpError => e
puts e.status_code
puts e.result
end
If you're migrating from v1, check out our Migration Guide or our Frequently Asked Questions.
To try this out, update the version of paypalrestsdk
in your Gemfile
to 2.0.0.rc2
.
Please feel free to create an issue in this repo with any feedback, questions, or concerns you have.
To run integration tests using your client id and secret, clone this repository and run the following command:
$ bundle install
$ rspec spec/integration
NOTE: This API is still in beta, is subject to change, and should not be used in production.
If you have any suggestions/remarks/feedback related to SDK 2.0.0, feel free to create an issue.
PayPal-Ruby-SDK is open source. See the LICENSE file for more info.
Pull requests and new issues are welcome. See CONTRIBUTING.md for details.
FAQs
Unknown package
We found that paypal-sdk-rest demonstrated a not healthy version release cadence and project activity because the last version was released 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.