braintree / braintree_dotnet

Braintree .NET library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
136 stars 73 forks source link

PayPal Transaction ID not included in Transaction object #88

Closed agreenspan24 closed 5 years ago

agreenspan24 commented 5 years ago

General information

Issue description

I am a developer with an application using the Braintree .NET SDK for server-side communication with Braintree. When I look in my PayPal activity portal, I see a Transaction ID associated with the sale that was created through the Braintree SDK. See below for an example:

image

However, this PayPal Transaction ID exists nowhere in the Transaction object that is returned from a Sale (using SaleAsync). I would think it would exist in the PayPal Details object, perhaps as the CaptureId or the PaymentId. However those are different ids (the CaptureId is the same as the AuthorizationId for me).

It would be helpful for comparing and reconciling payments in the PayPal UI to my database if we could associate the Transaction returned from Braintree with the payment shown by PayPal.

Is there a way to get the Transaction ID through the Braintree .NET SDK? Would Braintree be willing to introduce this property?

Thank you!

Epreuve commented 5 years ago

We will have to check and see if this is a value that's only passed through to PayPal, or if it makes the return trip through to Braintree from PayPal.

If the latter, adding it would certainly be possible. If the former, we can take the request to the appropriate teams to see if it might be added in the future. We'll do some digging and update here with our findings.

crookedneighbor commented 5 years ago

That is the transaction id for the buyer, which is not exposed to the seller, so we don't have access to include it in the Braintree transaction object. The ID that the seller gets (yes, there are 2 ids for the PayPal transaction) is visible as the capture id.

agreenspan24 commented 5 years ago

Thanks @crookedneighbor! Sorry, I got mixed up between my test buyer and seller accounts.