Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Payment |
build() |
Payment.Builder |
declineCode(String declineCode) |
Payment.Builder |
processor(Payment.Processor processor) |
Payment.Builder |
wasAuthorized(boolean wasAuthorized) |
public Payment.Builder processor(Payment.Processor processor)
processor
- The payment processor used for the transaction.public Payment.Builder wasAuthorized(boolean wasAuthorized)
wasAuthorized
- The authorization outcome from the payment
processor. If the transaction has not yet been
approved or denied, do not include this field.public Payment.Builder declineCode(String declineCode)
declineCode
- The decline code as provided by your payment
processor. If the transaction was not declined,
do not include this field.public Payment build()
Payment
created from the
fields set on this builder.Copyright © 2016 MaxMind, Inc.. All rights reserved.