Java 无法创建非美元价格的条带订阅

Java 无法创建非美元价格的条带订阅,java,stripe-payments,Java,Stripe Payments,我正在尝试使用美元、欧元和英镑设置Stripe订阅付款。我有一种产品,有三种价格,每种货币一种。如果我选择美元价格,它可以工作,但其他人的订阅创建失败,但以下情况除外: com.stripe.exception.InvalidRequestException:指定的价格使用的是欧元,与预期的美元货币不匹配。改用usd 我不明白美元是从哪里来的。创建订阅的我的代码: // link PaymentMethod to Customer .. might throw CardException Pay

我正在尝试使用美元、欧元和英镑设置Stripe订阅付款。我有一种产品,有三种价格,每种货币一种。如果我选择美元价格,它可以工作,但其他人的订阅创建失败,但以下情况除外:

com.stripe.exception.InvalidRequestException:指定的价格使用的是
欧元
,与预期的
美元
货币不匹配。改用
usd

我不明白美元是从哪里来的。创建订阅的我的代码:

// link PaymentMethod to Customer .. might throw CardException
PaymentMethod pm = null;
try {
    pm = PaymentMethod.retrieve(paymentMethodId);
    pm.attach(PaymentMethodAttachParams.builder().setCustomer(customer.getId()).build());
} catch (CardException e) {
    throw new ReportableException(e.getMessage());
}

// make default PaymentMethod for customer
CustomerUpdateParams cup = CustomerUpdateParams.builder()
        .setInvoiceSettings(CustomerUpdateParams.InvoiceSettings.builder().setDefaultPaymentMethod(paymentMethodId).build())
        .build();
customer.update(cup);

SubscriptionCreateParams.Item item = SubscriptionCreateParams.Item.builder().setPrice(price).build();

// create subscription
SubscriptionCreateParams subCreateParams = SubscriptionCreateParams.builder()
        .addItem(item)
        .setCustomer(customer.getId())
        .addAllExpand(Arrays.asList("latest_invoice.payment_intent"))
        .build();

Subscription subscription = Subscription.create(subCreateParams);
有什么想法吗?Tx.

我收到了关于“freenode上的条纹”的答复:

@timebox
A Customer can only have one currency.
You've already created a Subscription on that Customer with USD.
在30秒内就把它拿回来了。令人印象深刻的支持。

我收到了关于“freenode上的条纹”的答复:

@timebox
A Customer can only have one currency.
You've already created a Subscription on that Customer with USD.
在30秒内就把它拿回来了。令人印象深刻的支持