We are using the PHP Toolkit, and when I try to query for the Opportunity Id from Payment object, I only get back the Payment Id and not Opportunity Id or any of my custom field IDs. Any ideas what we're doing wrong?
$query = "SELECT Id, npe01__Opportunity__c, Stripe_Charge_Id__c FROM npe01__OppPayment__c WHERE Stripe_Charge_Id__c = '$chargeId'";
$response = $this->sfConnection->query($query);
foreach ($response->records as $record) {
echo(print_r($record, true));
}
This is the output we get:
stdClass Object\n(\n [Id] => a017A000003EiSWQA0\n)\n