stripe中有任何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>
答案 0 :(得分:0)
是的,国家/地区规格API提供了一个supported_bank_account_currencies
属性,该属性恰好具有此信息。
例如
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"]
哪个是