code: @NonNull
      public static PaymentIntentParams createConfirmPaymentIntentWithPaymentMethodCreateParams(
              @Nullable PaymentMethodCreateParams paymentMethodCreateParams,
              @NonNull String clientSecret,
              @NonNull String returnUrl,
              boolean savePaymentMethod) {
          return new PaymentIntentParams()
                  .setPaymentMethodCreateParams(paymentMethodCreateParams)
                  .setClientSecret(clientSecret)
                  .setReturnUrl(returnUrl)
                  .setSavePaymentMethod(savePaymentMethod);
      }
docs: Create the parameters necessary for confirming a PaymentIntent while attaching
  {@link PaymentMethodCreateParams} data
  
  @param paymentMethodCreateParams params for the PaymentMethod that will be attached to this
  PaymentIntent
  @param clientSecret client secret from the PaymentIntent that is to be confirmed
  @param returnUrl the URL the customer should be redirected to after the authorization
  process
  @param savePaymentMethod Set to {@code true} to save this PaymentIntent’s payment method to
  the associated Customer, if the payment method is not already
  attached. This parameter only applies to the payment method passed
  in the same request or the current payment method attached to the
  PaymentIntent and must be specified again if a new payment method is
  added.
  @return params that can be use to confirm a PaymentIntent