#DavidS-treasury
1 messages ยท Page 1 of 1 (latest)
Thanks ๐
I can take
@lost crow what's your question?
there's just a picture right now with no error message or info about what's wrong
Sorry, that's weird. My question:
I was recently approved for Treasury, and I'm trying to integrate in test mode. Everything with Connect is working (account creation, onboarding, etc.), but we're getting a weird syntax error when trying to create a Treasury Financial Account.
So far, we've just copy and pasted the code from the guide (https://stripe.com/docs/treasury/account-management/financial-accounts) to form our API request, but it is breaking. We're building in Ruby on Rails. Ruby 2.6.6, Rails 5.2.4 and using the Stripe gem.
Any thoughts? Thanks for your help!
tl;dr: Why are we getting a syntax error when we're just copy-and-pasting the code from the Treasury docs? Thanks! ๐
that's the exact same words/pictures
where are ou getting a syntax error?
Can you share real text/code instead of pictures?
just to clarify the {{ }} are just placeholders you want { stripe_account: 'acct_123'} instead
Okay, I removed the {{}}, but I'm still getting the same syntax error from the picture.
Sure!
you're missing the wrapping curly brackets over the first part def create_tv_wallet(tv_account_id) Stripe::Treasury::FinancialAccount.create({ supported_currencies: ['usd'], features: { card_issuing: {requested: false}, deposit_insurance: {requested: true}, financial_addresses: {aba: {requested: true}}, inbound_transfers: {ach: {requested: true}}, intra_stripe_flows: {requested: true}, outbound_payments: { ach: {requested: true}, us_domestic_wire: {requested: false}, }, outbound_transfers: { ach: {requested: true}, us_domestic_wire: {requested: false}, }, }, }, { stripe_account: tv_account_id, }) end
looks like the example is broken in ruby that's why, I'll get it fixed
you are likely on an older version of stripe-ruby and need to upgrade the gem