
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
ember-cli-paypal
Advanced tools
TODO: (feel free to help)
npm install --save-dev ember-cli-paypal
In your config/environments.js
add the following values:
ENV.paypal: {
endPoint: '',
clientId: '',
secret: ''
}
Your endPoint
will either be 'https://api.sandbox.paypal.com'
or 'https://api.paypal.com'
depending on your environment. Your clientId
and secret
are provided by your PayPal Developer Account.
Currently, the only REST endpoint supported is POST /v1/payments/payment
. Specifically, payment with a credit card.
The following is the minimum data and proper format necessary to complete a transaction:
var data = {
"intent": "sale",
"payer": {
"payment_method": "credit_card",
"funding_instruments": [{
"credit_card": {
"type": "visa",
"number": "4111111111111111",
"expire_month": 2,
"expire_year": 2018,
"cvv2": "123",
"first_name": "test",
"last_name": "test",
"billing_address": {
"line1": "123 street",
"city": "CityVille",
"state": "CA",
"postal_code": "12345",
"country_code": "US"
}
}
}]
},
"transactions": [{
"amount": {
"currency": "USD",
"total": "30",
"details": {
"subtotal": "30"
}
},
"description": "FE test"
}],
"redirect_urls": {
"return_url": "http://localhost:9000/billing",
"cancel_url": "http://localhost:9000/billing"
}
}
Refer to here for a (mostly) complete schema of possible inputs.
this.paypal.submitPayment(data, callback)
:Submit payment data to paypal's api. The callback will return the response from the API for you to handle as you wish.
Yes Please.
I would gratefully appreciate any help to improve this addon.
FAQs
An ember-cli addon to easily integrate paypal into your app.
We found that ember-cli-paypal 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.