braintree / braintree_dotnet

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

PayPal BillingAgreementId not returned when creating a transaction with StoreInVaultOnSuccess #101

Closed simeyla closed 3 years ago

simeyla commented 4 years ago

General information

Issue description

When adding a PayPal account to the vault explicitly you can easily get back the BillingAgreementId via PayPalAccountBillingAgreementId, but it is not present when creating a new transaction and setting TransactionRequest.Options.StoreInVaultOnSuccess.

Under PayPalDetails it does return to me almost everything about the PayPal Payer except for the agreement ID.

To avoid a round trip I'd really love to get access to the BillingAgreementId in this scenario in the response.

sestevens commented 4 years ago

Hi @simeyla, thanks for opening this issue. You're correct that the PayPal billing agreement id is not returned when creating a new transaction, although it should be returned in this case. We will update this issue once this has been fixed.

hollabaq86 commented 3 years ago

👋 @simeyla, this is fixed in version 5.2.0.