Should handle at least payment capture confirmations, refunds, and chargebacks.
https://developer.paypal.com/braintree/docs/guides/webhooks/overview
Ejegg | |
Mar 9 2022, 7:14 PM |
F37493708: image.png | |
Aug 15 2023, 6:17 PM |
Should handle at least payment capture confirmations, refunds, and chargebacks.
https://developer.paypal.com/braintree/docs/guides/webhooks/overview
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Create IPN listener for Braintree | wikimedia/fundraising/SmashPig | master | +92 -0 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Invalid | jgleeson | T303451 Create IPN listener for Braintree | |||
Resolved | jgleeson | T311169 Implement Braintree Webhook signature validation | |||
Invalid | jgleeson | T314400 Create Braintree IPN Job Handler |
For getting test ipns from Braintree we need to fix this issue I think?
https://phabricator.wikimedia.org/T308361
Change 817357 had a related patch set uploaded (by Jgleeson; author: Jgleeson):
[wikimedia/fundraising/SmashPig@master] WIP: Create IPN listener for Braintree
To test out receiving Braintree IPNs, you need to do the following:
Thanks. Ping me if you have any problems.
Note: It was late when I wrote this. I hope it makes sense!
Hi! Thanks for all this, and for the detailed testing instructions. I'm able to get an IPN test through locally via the tunnel. The new Braintree code is indeed invoked, and I'm getting a "No matching public key" error in syslog, apparently from this line.
Ah also... I see both patches marked WIP... is that still their status?
Thanks again! :)
Change 817357 merged by jenkins-bot:
[wikimedia/fundraising/SmashPig@master] Create IPN listener for Braintree
Should handle at least payment capture confirmations, refunds, and chargebacks.
I don't think Braintree give us webhook notifications for Paypal and Venmo completed capture or refund events. I tried enabling every webhook and going through the full transaction flow right to settlement in the console and then also refunded transactions, and I'm not getting any webhook notifications. I checked up on the list of available notifications, and it doesn't mention notifications for successful capture or refunds. I do see dispute notifications, so that might be how we get notified about chargebacks, but I need to confirm that with Braintree. Even so, it's not obvious to me how we'd use that information as we don't currently report chargeback IPNs from other gateways to donor services unless I'm wrong on that.
Local payment method notifications looked promising, but it turns out this isn't for Paypal or Venmo.
Local Payment Methods allow customers to pay with banks, wallets, or other means that operate only in specific regions of the world. For example, a customer in the Netherlands might want to pay using iDEAL, which is used by more than 60% of consumers in the Netherlands for online purchases, whereas a customer in Belgium on the same website might want to pay using Bancontact, a popular payment method there.
The only ones that stand out as immediately useful are the subscription notifications which I think will be related to our recurring donations. I'm gonna reach out to Braintree to see if there are any webhooks specific to PayPal and Venmo.
Braintree replied with
Webhooks are not available for transaction and refund events for PayPal and Venmo. In those cases, you would need to rely on the transaction result object for the details. The only webhook available would be the Payment Method event(s) for Venmo when a customer updates their Venmo profile, or revokes consent within the app.