PayPal invoice status not updating after successful payment
Edqe_
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Aug-15-2020
12:52 AM
I use the invoicing API to make an invoicing discord bot. I managed to use the API to make the invoice and send the link to the chat for the recipient to pay it but after testing using sandbox account, the payment stated as pending and the transaction didn't show on the merchant side and the invoice status still UNPAID or SENT.
Invoicing API v2
Language: NodeJS
Package used: https://www.npmjs.com/package/paypal-invoices
Invoice object
{
detail: {
invoice_number,
currency_code: config.invoice.currency,
note: config.invoice.details.note,
term: config.invoice.details.term,
payment_term: {
term_type: 'NET_15'
}
},
items: [
{
name: item,
quantity: '1',
unit_amount: {
currency_code: config.invoice.currency,
value: amount.toFixed(2)
},
unit_of_measure: 'AMOUNT'
}
],
configuration: {
partial_payment: {
allow_partial_payment: true,
minimum_amount_due: {
currency_code: config.invoice.currency,
value: (amount * 0.5).toFixed(2)
}
},
allow_tip: true
}
}
Recipient side (both is partial payment)
Invoice
I think its just pending payment but since the API stated there is pending payment status so I don't really know what happened
0 REPLIES 0

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
- Payments Refunded Automatically After Successful Transactions - PayPal Business Account Issue in REST APIs
- Selected Shipping Method amount not updating to cart for card payment in SDKs
- How can I have orders marked as shipped in Shopify be updated as shipped in PayPal? in Braintree Client-side Integration (JS, iOS, Android SDKs)
- Unable to test successful payments using sandbox personal accounts in NVP/SOAP APIs
- PayPal Redirection Issue After Successful Payment in Photobooth Integration in Sandbox Environment