条纹是有任何api。我想得到一个国家链接支持的货币这个https://stripe.com/docs/connect/payouts#supported-settlement我想在我的平台帐户验证过程中实现它所以当用户选择国家支持的货币将显示在下面选择框这里是我的国家选择框代码
<div class="form-group m-form__group row">
<label for="country" class="col-lg-2 col-xs-12 col-form-label">
Country <span class="required">*</span>
</label>
<div class="col-lg-7 col-xs-12">
<select name="account-country"
class="form-control account input-lg"
id="account-country" data-stripe="country">
<option value="US">United States</option>
<option value="GB">United Kingdom</option>
<option value="AU">Australia</option>
<option value="AT">Austria</option>
<option value="BE">Belgium</option>
<option value="BR">Brazil</option>
<option value="CA">Canada</option>
<option value="DK">Denmark</option>
<option value="FI">Finland</option>
<option value="FR">France</option>
<option value="DE">Germany</option>
<option value="HK">Hong Kong</option>
<option value="IE">Ireland</option>
<option value="IT">Italy</option>
<option value="JP">Japan</option>
<option value="LU">Luxembourg</option>
<option value="MX">Mexico</option>
<option value="NZ">New Zealand</option>
<option value="NL">Netherlands</option>
<option value="NO">Norway</option>
<option value="PT">Portugal</option>
<option value="SG">Singapore</option>
<option value="ES">Spain</option>
<option value="SE">Sweden</option>
<option value="CH">Switzerland</option>
</select>
</div>
</div>
是的,Country Specs API提供了supported_bank_account_currencies
属性,该属性具有此信息。
EG
const stripe = require("stripe")(
"sk_test_xxxx"
);
let specs = await stripe.countrySpecs.retrieve("DK")
specs.supported_bank_account_currencies;
这会返回这样的数据:(这只是一个摘录):
eur: ["AT", "BE", "CH", "DE", "DK", "ES", "FI", "FR", "GB", "IE", …]
gbp: ["GB"]
nok: ["NO"]
这是: