I am trying to pull a list of payments from my PayPal account. Here is a screenshot of the payments:
My request returns zero payments. I can confirm that my client id and secret are correct, since I can pull a list of invoices. What is wrong with my request?
GET https://api.paypal.com/v1/payments/payment?count=10&start_index=5&start_date=2016-09-19T18:08:44Z&end_date=2016-10-19T18:08:44Z
The correct request would be:
https://api.paypal.com/v1/payments/payment?count=10&start_index=5&start_time=2016-09-19T18:08:44Z&end_time=2016-10-19T18:08:44Z
I replaced start_date with start_time and end_date with end_time
Related
On the PayPal developer site they state it is possible to capture 75 US Dollar or 15% percent more than the original authorized amount of a payment. I am currently using the order API because I can't seem to figure out how to create a Payment from the payment API. My question is the following: how can I capture a different amount then the authorized amount(order API). In the capture section of the Order API I can't give up a new amount. I tried to patch the order first but after the amount was authorized the status of the order is COMPLETED, so the value couldn't be updated.
I think the reason I don't understand how to do it is because I don't know the difference between Order and Payment API. I would like to use the payment API but I can not find an PayPal API to create a payment.
Use the order API with "intent":"authorize". The completed order will have a payment authorization object in the response.
Use the payment API to capture the authorization object for the desired amount, https://developer.paypal.com/docs/api/payments/v2/#authorizations_capture
I have done paypal subscription integration with paypal-node-sdk, after transaction complete how can i get invoice Id.
Do i need to generate the Invoice ID after transaction complete ? if i generate and change the invoice to paid status, then how the excute transaction and paypal invoice id matches ?
Please refer below link for Fully updates an invoice, by ID. In the JSON request body, include a complete invoice object
invoices_update
Using the parallel payments paypal api. If user 1 makes a payment to user 2, I make a check using the api to make sure paypal returns the payment details as COMPLETED.
How long does paypal keep that COMPLETED payment record? Do they keep it indefinitely, or do they delete it after a while? I ask because I am at the stage of development where I need to decide if I should rely on paypal keeping that record indefinitely, or if I should create a record on my server that the payment has been completed, or if I should always check if the payment has been marked as COMPLETED by querying paypal?
The only reason why I "want" to check via paypal, is if the payment is ever returned to user1 as REFUNDED or PARITALLY_REFUNDED when paypal is queried using their apis. I would want to act accordingly in such situations.
It's not too much of an issue if the status is REFUNDED or PARTIALLY_REFUNDED as apparently people can't get refunds if they don't open a case with paypal before 45 days are up. I am more concerned about the REVERSED status, which can apparently happen any time, even after 45 days which is beyond paypal's control, as it is done by the credit card companies, if the user pays by credit card...
Using the PaymentDetails request I was able to pull my oldest Adaptive Payment transaction, which was over 60 days old and had no problems pulling it up using the transactionId field. It should be able to pull up payments as long as they are listed in the PayPal account (currently forever.)
This will work using the payKey field also if you are storing that instead of transactionId, however the transactionId is displayed in your PayPal account and is sent with IPN responses.
I'm using PayPal Express checkout and I'm trying to display to the customer their transaction id at the end of the checkout process on the thank you page.
I'm currently pulling back:
PAYMENTREQUEST_0_TRANSACTIONID
Which is the transaction id that is logged in my business account. However the transaction id on the email sent to the customer is different to this id that is being returned.
I'm using this API: https://developer.paypal.com/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/
The documentation states
"(Optional) Transaction identification number of the transaction that was created. You can specify up to 10 payments, where n is a digit between 0 and 9, inclusive.
Note This field is only returned after a successful transaction for DoExpressCheckout has occurred.
TRANSACTIONID is deprecated since version 63.0. Use PAYMENTREQUEST_0_TRANSACTIONID instead. "
I'm also using
PAYMENTREQUEST_0_INVNUM
Which is very helpful and lets me put my order reference number into the main body of the email that the customer receives, but I'd also like their transaction id, so that if they send a query through this can be logged in a field in the database and cross referenced against the order with just the transaction id.
Any help would be appreciated!
Thanks
PayPal assigns different transactions to the buyer and the seller. I'm not exactly sure why, but I know they do.
If a customer gives you their transaction ID, though, you CAN find it in your PayPal account by doing a search through paypal.com or via the TransactionSearch API.
I'm looking for the correct endpoint to use in the Paypal API for looking up a transaction by invoice id. We submit the invoice id to paypal when redirecting customers to PayPal for payment on their site. In order for us to resolve abandoned carts correctly, I need to look these invoice ids back up in paypal to see if there are completed transactions or not. Thanks.
You can use the TransactionSearch API, and use the INVNUM as the criteria to search by. The API Endpoint will depend on if you are trying this on live or sandbox, what type of format you are using, and what type of authentication you are using. You can find a list of the endpoints here.