Paypal Express Checkout Order Api
kisan11
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Dec-13-2019
10:13 PM
I'm trying to integrate paypal express checkout. While sending items in purchase units to create order api v2 it returns error of update config. Please Help
1 REPLY 1

Moderator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb-28-2020
01:32 PM
Hello,
Thank you for posting to the PayPal Merchant Technical Support community.
Here is the information on adding quantity to the Orders API V2:
https://developer.paypal.com/docs/api/orders/v2/#definition-item
Post to :https://api.sandbox.paypal.com/v2/checkout/orders
Here's the general format:
{
"intent": "CAPTURE",
"purchase_units": [
{
"amount": {
"currency_code": "USD",
"value": "25.00",
"breakdown": {
"item_total":{
"currency_code": "USD",
"value": "20.00"
},
"shipping":{
"currency_code": "USD",
"value": "5.00"
},
"tax_total":{
"currency_code": "USD",
"value": "1.00"
},
"shipping_discount":{
"currency_code": "USD",
"value": "1.00"
}
}
},
"items": [
{
"name": "Coffee Cup 12oz",
"unit_amount":{
"currency_code": "USD",
"value": "20.00"
},
"tax": {
"currency_code": "USD",
"value": "1.00"
},
"quantity": "1",
"description": "Amazing Coffee mug to hold that Java",
"sku": "123456",
"category": "PHYSICAL_GOODS"
}],
"shipping": {
"name": {
"full_name": "Bob Smith"
},
"address": {
"address_line_1": "234 Main St",
"admin_area_2": "Mesa",
"admin_area_1": "AZ",
"postal_code": "85201",
"country_code": "US"
}
}
}
]
}
After the account holder agrees to the payment then you can run a Capture Call:
https://api.sandbox.paypal.com/v2/checkout/orders/{{order_id}}/capture
You just need to get the order_id from the response and then you can run a Capture call.
Thank you,
Jennifer
PayPal

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Is it possible to make payments in RON (Romanian Leu) through PayPal? in REST APIs
- Payments Refunded Automatically After Successful Transactions - PayPal Business Account Issue in REST APIs
- p is not a function error using the example downloaded from Paypal in SDKs
- How to enable on-demand / recurring payments to existing PayPal checkout? in SDKs
- iDEAL payments being refunded back to customers in PayPal Payments Standard