paypal


Error processing paypal payments in production


We use paypal's SOAP API to process payments, sandbox payment processing is working fine but failing in production with the following response. I am not understanding transactions.amount.details field
Request:
{"transactions": [
{
"description": "",
"amount": {
"total": "1.00",
"currency": "USD",
"details": null
}
}
],
"payer": {
"payment_method": "credit_card",
"funding_instruments": [
{
"credit_card": {
"type": "visa",
"last_name": "xxxxx",
"first_name": "xxxx",
"expire_year": "xxxx",
"expire_month": "xx",
"cvv2": "701",
"number": "xxxxxxxxxxxxxxx",
"billing_address": {
"state": "CA",
"postal_code": "94704",
"phone": null,
"line2": null,
"line1": "xxxxxxxxxxx",
"country_code": "xx",
"city": "xxxxxxxx"
}
}
}
]
},
"intent": "sale"}
Response:
"status": 400,
"duration_time": 113,
"body": {
"message": "Invalid request - see details",
"information_link": "https://developer.paypal.com/docs/api/#VALIDATION_ERROR",
"details": [
{
"field": "transactions.amount.details",
"issue": "This field name is not defined for this resource type"
}
],
"name": "VALIDATION_ERROR",
"debug_id": "251e5ad7494cf"
},
"additional_properties": {},
"header": {
"Content-Length": "289",
"Content-Language": "*",
"CORRELATION-ID": "251e5ad7494cf",
"Date": "Tue, 20 Sep 2016 09:25:17 GMT",
"Connection": "close",
"Paypal-Debug-Id": "251e5ad7494cf",
"PROXY_SERVER_INFO": "host=dcg12javapapi9720.dcg12.slc.paypalinc.com;threadId=329",
"Content-Type": "application/json"
}
It expects an object itemizing the amount into subtotal, shipping etc as outlined here.
Example:
"amount": {
"total": "7.47",
"currency": "USD",
"details": {
"subtotal": "7.41",
"tax": "0.03",
"shipping": "0.03"
}
}

Related Links

PayPal sandbox IPN issue [closed]
paypal adaptive payments guest implicit payment
Adaptive Chained Payments IPN not updating
Paypal API Recurring Payments Balance
Paypal Javascript Button data-notify-url Instant Payment Notification
Paypal Sandbox Express Checkout Session Expired
How can I set language for paypal sandbox login page?
Paypal Adaptive Payments remove memo option?
How to implement PayPal recurring payment with dynamic amount?
This transaction cannot be processed due to an unsupported currency - Paypal direct payment
IPN Listner not working MVC3
No confirmation e-mail after Paypal payment
Pass custom data via Paypal Standards Payment Button created via Paypal Admin
No shipping info with adaptive payments
Paypal Cancelation - Recurring Payment
after paypal transaction get data with out click continue button

Categories

HOME
python
cntk
sed
ipython
jbehave
otrs
sbt-assembly
histogrammar
filter
constructor
xlsx
public-key-encryption
cosmicmind
ejs
aspell
kadanes-algorithm
jive
rails-activerecord
deb
nsmenuitem
richfaces
profile
jflex
bus-error
excel-2013
multichoiceitems
aurelia-binding
apache-cloudstack
helix-3d-toolkit
hotmail
getline
ocs
bing-maps-api
topic-modeling
jquery-multidatespicker
homekit
resuming-training
apiary
bids
startapp
chown
uiviewpropertyanimator
seamless-immutable
execl
pycurl
keycode
verbose
cfeclipse
alter
children
soda
financial
flexjson
bluesnap
magento-1.4
license-key
loose-typing
file-diffs
optionbutton
response-headers
programming-paradigms
connection-reset
castle-windsor-3
pyopengl
adobe-indesign
hana-xs
ibmsbt
ghostdoc
firebug-lite
dto
io.js
dvcs
initialization-vector
sslexception
image-zoom
manage.py
soa-suite
magickwand
icsharpcode
xgettext
parameterization
responsetext
text-size
printing-web-page
exitstatus
carbide
communicationexception
scala-2.8
odbc-sql-server-driver
outlook-form
msf
hardware-infrastructure
associativity

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App