| | |
| | | if(ToolUtil.isEmpty(tUser.getUserNumber())){ |
| | | // 需要创建初始用户 |
| | | try { |
| | | createUser = stripePayUtils.createStripeCustomNoCard("createUser"); |
| | | createUser = stripePayUtils.createStripeCustomNoCard(tUser.getAccount()); |
| | | tUser.setUserNumber(createUser); |
| | | userService.updateById(tUser); |
| | | } catch (StripeException e) { |
| | |
| | | ProductCreateParams productParams = |
| | | ProductCreateParams.builder() |
| | | .setName("Starter Subscription") |
| | | .setDescription("$12/Month subscription") |
| | | .setDescription("10/Month subscription") |
| | | .build(); |
| | | Product product = Product.create(productParams); |
| | | System.out.println("Success! Here is your starter subscription product id: " + product.getId()); |