FabioC
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
May-30-2022
06:46 AM
Using SDK for nodejs I created an order.
The order is correctly created and paid, the response to capture says the operation is complete but there is no evidence of the payment in the web interface.
Here the capture result:
{
"id": "2NK***********",
"intent": "CAPTURE",
"status": "COMPLETED",
"purchase_units": [
{
"reference_id": "default",
"amount": {
"currency_code": "EUR",
"value": "55.40",
"breakdown": {
"item_total": {
"currency_code": "EUR",
"value": "45.41"
},
"shipping": {
"currency_code": "EUR",
"value": "0.00"
},
"handling": {
"currency_code": "EUR",
"value": "0.00"
},
"tax_total": {
"currency_code": "EUR",
"value": "9.99"
},
"insurance": {
"currency_code": "EUR",
"value": "0.00"
},
"shipping_discount": {
"currency_code": "EUR",
"value": "0.00"
},
"discount": {
"currency_code": "EUR",
"value": "0.00"
}
}
},
"payee": {
"email_address": "payeeEmail",
"merchant_id": "4HMZ7C******"
},
"description": "ORDER: 035370",
"custom_id": "0311111",
"soft_descriptor": "PAYPAL *****",
"shipping": {
"name": {
"full_name": "John Doe"
}
},
"payments": {
"captures": [
{
"id": "5232**********",
"status": "COMPLETED",
"amount": {
"currency_code": "EUR",
"value": "55.40"
},
"final_capture": true,
"seller_protection": {
"status": "NOT_ELIGIBLE"
},
"seller_receivable_breakdown": {
"gross_amount": {
"currency_code": "EUR",
"value": "55.40"
},
"paypal_fee": {
"currency_code": "EUR",
"value": "2.23"
},
"net_amount": {
"currency_code": "EUR",
"value": "53.17"
}
},
"custom_id": "0311111",
"links": [
{
"href": "https://api.paypal.com/v2/payments/captures/****",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.paypal.com/v2/payments/captures/****/refund",
"rel": "refund",
"method": "POST"
},
{
"href": "https://api.paypal.com/v2/checkout/orders/*****",
"rel": "up",
"method": "GET"
}
],
"create_time": "2022-05-24T07:02:14Z",
"update_time": "2022-05-24T07:02:14Z"
}
]
}
}
],
"payer": {
"name": {
"given_name": "John",
"surname": "Doe"
},
"email_address": "payerEmail",
"payer_id": "6CU*******",
"phone": {
"phone_number": {
"national_number": "123456789"
}
},
"address": {}
},
"update_time": "2022-05-24T07:02:14Z",
"links": [
{
"href": "https://api.paypal.com/v2/checkout/orders/********",
"rel": "self",
"method": "GET"
}
]
}
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Accepted Solutions
FabioC
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May-31-2022
08:21 AM
1 REPLY 1
FabioC
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May-31-2022
08:21 AM
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
- Passing Internal Order ID Between Webhooks (CHECKOUT.ORDER.APPROVED & PAYMENT.CAPTURE.COMPLETED) in REST APIs
- Something doesn't look right. Your payment to this merchant can't be completed using PayPal. in Sandbox Environment
- I want to implement subscription functionality. in REST APIs
- Connecting with site to take payments in Payflow
- Change the button from Sandbox to Production in REST APIs