Class PaymentIntentCaptureParams.PaymentDetails.Builder

java.lang.Object
com.stripe.param.PaymentIntentCaptureParams.PaymentDetails.Builder
Enclosing class:
PaymentIntentCaptureParams.PaymentDetails

public static class PaymentIntentCaptureParams.PaymentDetails.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      Finalize and obtain parameter instance from this builder.
    • setCustomerReference

      public PaymentIntentCaptureParams.PaymentDetails.Builder setCustomerReference(String customerReference)
      A unique value to identify the customer. This field is available only for card payments.

      This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.

    • setCustomerReference

      public PaymentIntentCaptureParams.PaymentDetails.Builder setCustomerReference(EmptyParam customerReference)
      A unique value to identify the customer. This field is available only for card payments.

      This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.

    • putExtraParam

      Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See PaymentIntentCaptureParams.PaymentDetails.extraParams for the field documentation.
    • putAllExtraParam

      Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See PaymentIntentCaptureParams.PaymentDetails.extraParams for the field documentation.
    • setOrderReference

      public PaymentIntentCaptureParams.PaymentDetails.Builder setOrderReference(String orderReference)
      A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.

      Required when the Payment Method Types array contains card, including when automatic_payment_methods.enabled is set to true.

      For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.

    • setOrderReference

      public PaymentIntentCaptureParams.PaymentDetails.Builder setOrderReference(EmptyParam orderReference)