Discrepancy on customer reference on on-behalf contribution/membership
When a some one buys membership or does donation on behalf of Organization, the Stripe customer is referenced to Organization Id i.e the customer name, metadata and even in civicrm_stripe_customers table.
This is not true when you have 'User account created' option enabled for anonymous user on Online contribution form. In this case the Stripe customer is referenced to the Individual who did the payment.
Reason: Stripe Extension uses $propertyBag->getContactID() function to retrieve the contact id of the customer from Civi which is set in CRM_Mjwshared_ExtensionUtil::getContactId() function. The contactID variable is set in the propertybag hence the later part in the function code is not executed. Incase of cms user create the contactID is over-ridden to Individual ID in CRM_Contribute_BAO_Contribution_Utils::createCMSUSer().