Skip to content
GitLab
Projects Groups Topics 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
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 88
    • Issues 88
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • 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
  • !208

Fix #410

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed ayduns requested to merge ayduns/stripe:fix_customer_retrieve into master Jan 12, 2023
  • Overview 5
  • Commits 1
  • Pipelines 0
  • Changes 1

CRM_Stripe_Customer::find() is only called from CRM/Core/Payment/Stripe.php

The returned value is saved as $stripeCustomerId and then passed to the Stripe API to retrieve the customer record.

Clearly the calling code is expecting to receive a Stripe customer_id such as cus_123456 rather than the id column from the civicrm_stripe_customer table.

This PR corrects CRM_Stripe_Customer::find() to return the customer_id and brings it in line with changes already in 6.8

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix_customer_retrieve