java.lang.Object
com.maxmind.minfraud.request.Payment.Builder
- Enclosing class:
- Payment
Builder
creates instances of Payment
from values set by the builder's
methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
declineCode
(String declineCode) processor
(Payment.Processor processor) wasAuthorized
(boolean wasAuthorized)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
processor
- Parameters:
processor
- The payment processor used for the transaction.- Returns:
- The builder object.
-
wasAuthorized
- Parameters:
wasAuthorized
- The authorization outcome from the payment processor. If the transaction has not yet been approved or denied, do not include this field.- Returns:
- The builder object.
-
declineCode
- Parameters:
declineCode
- The decline code as provided by your payment processor. If the transaction was not declined, do not include this field.- Returns:
- The builder object.
-
build
- Returns:
- an instance of
Payment
created from the fields set on this builder.
-