#ruby-connect-branding

1 messages · Page 1 of 1 (latest)

tidal ingotBOT
zealous imp
#

Hello! Do you have a bit more details?

runic path
#

here it is req_ZZYxPOl1W9uUAP

zealous imp
#

ruby-connect-branding

runic path
#

I want to fetch live and test brands settings and save them in our DB

zealous imp
#

oh you changed your name again lol

runic path
#

no I'm the developer works for Adam

zealous imp
#

gotcha

#

Where did you get that file_123 id exactly?

runic path
#

API request

#

stripe_account = Stripe::Account.retrieve(@site.stripe_user_id, {stripe_account: @site.stripe_user_id})

#

stripe_icon_file_id = stripe_account.settings.branding.icon
stripe_logo_file_id = stripe_account.settings.branding.logo

#

stripe_icon_obj = Stripe::File.retrieve(stripe_icon_file_id, {stripe_account: @site.stripe_user_id})
stripe_logo_obj = Stripe::File.retrieve(stripe_logo_file_id, {stripe_account: @site.stripe_user_id})

zealous imp
#

Okay so you retrieve the Account with a Live Secret API key and got that file id? Or you did this with a Test key?

runic path
#

live key

zealous imp