#SoloGeneral-missing-object

1 messages ยท Page 1 of 1 (latest)

sly moss
#

Hi ๐Ÿ‘‹ since you're providing the Connected Account's ID when creating the source, the Source object will actually reside on the Connected Account. This means you'll also need to provide that ID when retrieving the source so we know to look at the objects in the Connected Account rather than in the Platform account.

modest idol
sly moss
#

๐Ÿ‘ Happy to help, let me know if that doesn't resolve the behavior you're encountering though.

modest idol
#

Could you please give an example API command using both the account id and the source id to retrieve the source? I have tried both

Stripe::Source.retrieve("<src id>", "<acct id>")
and
Stripe::Source.retrieve("<acct id>", "<src id>")

and am getting the following error:
Stripe::AuthenticationError: Invalid API Key provided: acct_1L1*********O166

I made sure to set the Stripe.api_key before making the calls

sly moss