官方文档:https://stripe.com/docs/payments/accept-a-payment
stripe返回的收银台页面
具体收款代码
Stripe.apiKey = stripeKey;
Customer customer = customerService.getById(ContextUtil.getUserId());
String currency = info.getCurrency(); //币种
BigDecimal amount = info.getAmount(); //金额(元)
//印尼 和 越南 金额不精确到分 .太毛了
if (currency.equals("vnd") || currency.equals("idr")) {
log.info("印尼 和 越南 金额不精确到分");
}else{
amount = amount.multiply(BigDecimal.valueOf(100)).setScale(0, RoundingMode.HALF_UP); //stripe要求传入的金额单位是分
}
SessionCreateParams params