Page MenuHomePhabricator

venmo recurring failing with Payment method has not been successfully stored
Closed, ResolvedPublic

Description

Validation error during recurring charge, in field: payment_method/id. Message: Payment method has not been successfully stored. Current status: failed.. venmo. . Request: {"recurring_payment_token":"fa8450e6-9241-4975-8a57-91629c52ab6e","amount":2,"currency":"USD","first_name":"*","last_name":"*","email":"*","country":"US","order_id":"249515655.3","installment":"recurring","description":"Wikimedia 877 600 9454","recurring":true,"user_ip":"136.58.1.208","processor_contact_id":null,"payment_service_id":"f8da27e5-4a8f-45a6-86e5-1c5cb2fea39c","fiscal_number":null}. Response: {"type":"error","code":"bad_request","status":400,"message":"Request failed validation","details":[{"location":"body","pointer":"/payment_method/id","message":"Payment method has not been successfully stored. Current status: failed.","type":"value_error"}]}

Did we already ask gravy about this? I couldn't find a thread if so

Event Timeline

Hi @Cstone, yes we did ask Gravy about this on this slack thread where they shared the affected tokens and also that they had identified and fixed the issue. I see the token in this error message is part of the affected ones Gravy shared.

I think for now, we can ignore the errors until the new Venmo recurrings (created > 18th of August) are being charged.

We asked Gravy in Slack here: https://wikimedia.slack.com/archives/C070F1DVBRN/p1785762839774829

In their investigation it was reported:

We found a few other cases with the same behavior you reported: a token that failed to be stored while the transaction was successfully captured. For these new cases, we were able to check the logs. Our engineering team is looking into it to understand exactly what happened. Once I have more information, I'll provide you with the transaction and payment method IDs alongside a full picture of the issue.

And that they found these Affected Payment Methods being affected:

04a01783-e637-495a-a5dd-4c19f4111256
bed9f2b5-a5da-4f3a-9406-bd5903cc6e32
e4193c69-15a4-4c01-8934-9064d200b57b
f22a9f05-473b-4669-85aa-9295299dcf1d
d194bfe5-18a0-4dfb-8be2-344d62e85611
fa8450e6-9241-4975-8a57-91629c52ab6e
0cf2ce9b-8143-4def-98da-836faa05c4c3
f76cc0cd-2290-413a-8826-38093a422d69
2e2692e3-b07e-47df-9074-09f24fc22d3b     # NEW added on Sept 8th
311d6631-3c2d-47ae-a6aa-619704424164   # NEW added on Sept 8th
71a8c3cb-7446-4eb3-a510-c7688c3204ce    # NEW added on Sept 8th

On Tuesday August 18th Gravy reported to have pushed a fix and to report back any subsequence instance we encounter. Note: if for a bit we get these alerts, we should ignore them if the associated payment method ID is in the list above provided (known affected PMs before the released fix).

If we see new payment methods IDs affected, we should report it to Gravy as it means their fix didn't work for new payment methods.

Laurabarluzzi changed the task status from Open to In Progress.Aug 20 2026, 1:59 PM
Laurabarluzzi claimed this task.
Laurabarluzzi triaged this task as Medium priority.

I added a SearchKit search that confirms the next scheduled recurring charge dates for these affected payment methods above (planned to fail due to the Gravy bug): https://civicrm.wikimedia.org/civicrm/search#/display/T434741_Gravy_venmo_affected_payment_methods_not_stored

As of today we should expect failures on these following dates (sadly one is yearly, so it will be next year). If there are retries, these dates will shifts even a bit later:

  • 21 August 2026
  • 23 August 2026
  • 23 August 2026
  • 24 August 2026
  • 3 September 2026
  • 25 July 2027

In case the saved search gets lost, here a screenshot:

image.png (3,024×674 px, 281 KB)

Since we have to monitor these errors with known affected IDs vs new ones, and we do have a yearly recurring charge expected to fail next summer, I documented in the handover document for the upcoming months of monitoring while in failmail wiki docs for the next year one.

Today we got an error for payment method ID: https://wikimedia.gr4vy.app/merchants/default/payment-methods/2e2692e3-b07e-47df-9074-09f24fc22d3b/overview

Followed up in Slack: https://wikimedia.slack.com/archives/C070F1DVBRN/p1788875785286019?thread_ts=1785762839.774829&cid=C070F1DVBRN

The failure here is on Aug 5th making me believe it was affected by the bug before the fix was released, and that maybe was mistakingly omitted by the list provided of affected PMs.

If we know they're going to fail, can we just go ahead and cancel the recurrings?

I think we can, but I'm not sure why it wasn't considered (I think I asked if we do that, and I was told we can just let it fail). I think we have many scenarios when we know the retries will fail and we let them fail (e.g. this is part of why I opened this discussion phab T436299: [ Discussion ] Evaluate how to best handle changes to payment methods for recurring contributions in Gravy and I tried to improve failmail messaging on this phab T436503: Sudden invalid_payment_method)

I personally think we should cancel all recurring contributions we are certain are going to fail, but I am not sure if it's worth doing this manually (and I don't know how I should go about it).

This said, if you cancel these I think you can remove the failmail zoo note for the yearly expected attempts for next year (another reason why i think is best to cancel them all in bulk, if possible): https://wikitech.wikimedia.org/wiki/Fundraising/Data_and_flow/Failmail_zoo#Failmail_alert_Validation_error_during_recurring_charge,_in_field:_payment_method/id

But I don't know why I wasn't advice to go ahead and cancel them; are we sure that if we force cancel we don't bypass the failure emails maybe? I think we want to email them letting them know something went wrong with their payment methods. I think that is the only thing to verify.

Thanks @Laurabarluzzi, we did consider it and decided to let it go through the failure process in order to trigger the failure emails with instructions on how donors can proceed. I don't think the cancel flow does the same thing.

Looks like there is only one outstanding. I suggest that in order to close this ticket and save ourselves a puzzle next July, we could ask Donor Relations to reach out to them.

@krobinson would you or some other DR specialist be able to reach out to https://civicrm.wikimedia.org/civicrm/contact/view?reset=1&cid=32560508 and let them know that there was a bug saving their details for the annual Venmo donation they tried to create? The initial donation came through fine, but we know in advance that the one scheduled for July 25th, 2027 is going to fail.

@MBeat33 would you mind taking this one? I think you have messaging you use in these cases of tech / payments bugs. Thanks!

I canceled cid=32560508's donation and invited them to make a new one.