Comments (6)
Update: Just got a new error saying that multiple transactions aren't possible with paypal. What if I have a shopping cart and need to charge for multiple items?
{"name":"VALIDATION_ERROR","details":[{"field":"transactions","issue":"Only single payment transaction currently supported"}],"message":"Invalid request - see details","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#VALIDATION_ERROR","debug_id":"ff4164ef25bb3"}
from paypal-node-sdk.
If you are just looking for line item support, you could utilize the Item List object - https://developer.paypal.com/webapps/developer/docs/api/#itemlist-object.
from paypal-node-sdk.
You cannot do multiple transactions in paypal. Worked with this curl though:
curl -v https://api.sandbox.paypal.com/v1/payments/payment -H 'Content-Type:application/json' -H 'Authorization: Bearer 3SJJq3HHLlt-.6T16Z4hkGYPUe7WMDnaOJNw1d7J6V8' -d '{
"intent":"sale",
"payer":{
"payment_method":"credit_card",
"funding_instruments":[
{
"credit_card":{
"type":"visa",
"number":"4446283280247004",
"expire_month":"11",
"expire_year":"2018",
"first_name":"Joe",
"last_name":"Shopper"
}
}
]
},
"transactions": [
{
"item_list": {
"items": [
{
"quantity": "1",
"name": "foo",
"price": "7",
"currency": "USD"
},
{
"quantity": "1",
"name": "bar",
"price": "7",
"currency": "USD"
}
]
},
"amount": {
"total": "14",
"currency": "USD",
"details": {
"subtotal": "14",
"tax": "0",
"shipping": "0"
}
},
"description": "This is the payment transaction 1 description."
}
]
}'
from paypal-node-sdk.
Great, that worked @ppmtscory
from paypal-node-sdk.
Thanks a bunch!
from paypal-node-sdk.
Anytime!
from paypal-node-sdk.
Related Issues (20)
- is it possible to use masPay (payouts) behalf third party? HOT 1
- PayPal Auth - Adaptative Payments HOT 2
- Currency amount must be non-negative number, may optionally ... HOT 2
- Error 500- paypal.billingPlan.get HOT 7
- Setup fee not showing when paying HOT 2
- Cancel thousands of agreements at the same time HOT 1
- AUTHORIZATION_ERROR HOT 8
- Is PayPal "Sync" Supported? /v1/reporting/transactions HOT 3
- Item amount must add up to specified amount subtotal (or total if amount details not specified) HOT 2
- This library seriously needs maintaining, billing plans do not work as per the docs. HOT 1
- PayPal SDK
- Rest API issue HOT 1
- Cannot construct instance of `com.paypal.platform.payments.model.rest.common.Amount`, problem: INVALID_CURRENCY_AMOUNT_FORMAT HOT 1
- problem with request: unable to verify the first certificate
- Can this sdk be used for subscriptions. HOT 3
- disable user subscription from the database if he didn't pay HOT 1
- RFC: Ability to Skip Customer Approval in Sandbox needed to run integration tests
- Paypal transaction API returns `Data for the given start date is not available.` HOT 4
- OrdersGetRequest bug HOT 1
- MISSING_PAYLOAD when using AgreementSuspendRequest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paypal-node-sdk.