Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Stripe Stripe
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 75
    • Issues 75
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Extensions
  • StripeStripe
  • Merge requests
  • !97

Update transaction id even if civicrm_stripe_subscriptions had contribution_recur_id empty

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed capo requested to merge capo/stripe:update_transaction_ids into master Feb 25, 2020
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 1

Hello @mattwire,

I've realized that I had a lot of unprocessed events in one of my clients. Most of them due to a "missing subscription" error that occurred while trying to process IPN calls of subscription payments.

In particular, most of that payments were old and still had a transaction id like 123456/12/20190112345678. But the main problem is that most of them also had NULL in the contrib_recur_id of the civicrm_stripe_subscriptions table.

With this new query, if there was an id there, it will be still used. But if it wasn't, the value of the invoice_id will be used to find the corresponding recurring contribution.

Edited Feb 25, 2020 by capo
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: update_transaction_ids