我是Stripe connect的新手。我正在尝试使用Stripe connect向源帐户收取费用并将其发送到目标帐户。以下代码中的source参数应根据https://stripe.com/docs/api/php#create_charge-source的信息接受源帐户ID。但是我收到错误com.stripe.exception.InvalidRequestException:没有这样的令牌:cus_xxxxxx其中cus_xxxxxx是我的主帐户中某个客户帐户的客户ID。
Map<String, Object> chargeParams = new HashMap<String, Object>();
chargeParams.put("amount", 1000);
chargeParams.put("currency", "usd");
chargeParams.put("source", ??);
chargeParams.put("destination", DestinationAccountID);
chargeParams.put("application_fee", 100);
Charge.create(chargeParams);
请让我知道如何实现这一点,因为这会一直给出错误。我只想使用客户ID而不是令牌。