title: Set default country for phone number field in Stripe Connect onboarding?
body: <p>This is pretty minor, but for better UX, during stripe connect onboarding, I would like the phone number field to default to the connected user's country (just like the address field does). How can I make this happen? Note that I do not have the user's phone number, so I can't provide it as a <a href="https://stripe.com/docs/api" rel="nofollow noreferrer">parameter to <code>Account.create()</code></a></p>
  <h3>Reproducible example</h3>
  <p>Create an new account and onboarding link</p>
  <pre class="lang-rb prettyprint-override"><code>country = &quot;US&quot;
  
  Stripe.api_key = Rails.application.credentials[Rails.env.to_sym][:stripe][:secret_stripe_test_key] 
  
  account = Stripe::Account.create({
    country: country, 
    type: 'express',
    capabilities: {
      card_payments: {
        'requested': true,
      },
      transfers: {
        'requested': true,
      },
    },
    settings: {
      payouts: {
        schedule: {
          interval: &quot;manual&quot;
        }
      }
    }
  })
  
  account_links = Stripe::AccountLink.create({
    account: account.id,
    refresh_url: 'https://example.com/reauth',
    return_url: 'https://example.com/return',
    type: 'account_onboarding',
  })
  </code></pre>
  <p>When visiting the onboarding link (i.e. via <code>account_links.url</code>), despite the account's country being <code>&quot;US&quot;</code>, the phone number defaults to Australia:</p>
  <p><a href="https://i.stack.imgur.com/hpyhZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hpyhZ.png" alt="enter image description here" /></a></p>
  <h3>Question</h3>
  <p>How can I make the phone number field default to the country of the account?</p>
  <h3>Note</h3>
  <p>The address field <em>does</em> default to USA, as desired:</p>
  <p><a href="https://i.stack.imgur.com/sykbE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sykbE.png" alt="enter image description here" /></a></p>