Package com.stripe.model.terminal
Class Reader.TestHelpers
java.lang.Object
com.stripe.model.terminal.Reader.TestHelpers
- Enclosing class:
- Reader
-
Method Summary
Modifier and TypeMethodDescriptionPresents a payment method on a simulated reader.presentPaymentMethod
(RequestOptions options) Presents a payment method on a simulated reader.Presents a payment method on a simulated reader.presentPaymentMethod
(ReaderPresentPaymentMethodParams params, RequestOptions options) Presents a payment method on a simulated reader.presentPaymentMethod
(Map<String, Object> params) Presents a payment method on a simulated reader.presentPaymentMethod
(Map<String, Object> params, RequestOptions options) Presents a payment method on a simulated reader.Use this endpoint to trigger a successful input collection on a simulated reader.succeedInputCollection
(RequestOptions options) Use this endpoint to trigger a successful input collection on a simulated reader.Use this endpoint to trigger a successful input collection on a simulated reader.succeedInputCollection
(ReaderSucceedInputCollectionParams params, RequestOptions options) Use this endpoint to trigger a successful input collection on a simulated reader.succeedInputCollection
(Map<String, Object> params) Use this endpoint to trigger a successful input collection on a simulated reader.succeedInputCollection
(Map<String, Object> params, RequestOptions options) Use this endpoint to trigger a successful input collection on a simulated reader.Use this endpoint to complete an input collection with a timeout error on a simulated reader.timeoutInputCollection
(RequestOptions options) Use this endpoint to complete an input collection with a timeout error on a simulated reader.Use this endpoint to complete an input collection with a timeout error on a simulated reader.timeoutInputCollection
(ReaderTimeoutInputCollectionParams params, RequestOptions options) Use this endpoint to complete an input collection with a timeout error on a simulated reader.timeoutInputCollection
(Map<String, Object> params) Use this endpoint to complete an input collection with a timeout error on a simulated reader.timeoutInputCollection
(Map<String, Object> params, RequestOptions options) Use this endpoint to complete an input collection with a timeout error on a simulated reader.
-
Method Details
-
presentPaymentMethod
Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.- Throws:
StripeException
-
presentPaymentMethod
Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.- Throws:
StripeException
-
presentPaymentMethod
Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.- Throws:
StripeException
-
presentPaymentMethod
public Reader presentPaymentMethod(Map<String, Object> params, RequestOptions options) throws StripeExceptionPresents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.- Throws:
StripeException
-
presentPaymentMethod
Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.- Throws:
StripeException
-
presentPaymentMethod
public Reader presentPaymentMethod(ReaderPresentPaymentMethodParams params, RequestOptions options) throws StripeException Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.- Throws:
StripeException
-
succeedInputCollection
Use this endpoint to trigger a successful input collection on a simulated reader.- Throws:
StripeException
-
succeedInputCollection
Use this endpoint to trigger a successful input collection on a simulated reader.- Throws:
StripeException
-
succeedInputCollection
Use this endpoint to trigger a successful input collection on a simulated reader.- Throws:
StripeException
-
succeedInputCollection
public Reader succeedInputCollection(Map<String, Object> params, RequestOptions options) throws StripeExceptionUse this endpoint to trigger a successful input collection on a simulated reader.- Throws:
StripeException
-
succeedInputCollection
public Reader succeedInputCollection(ReaderSucceedInputCollectionParams params) throws StripeException Use this endpoint to trigger a successful input collection on a simulated reader.- Throws:
StripeException
-
succeedInputCollection
public Reader succeedInputCollection(ReaderSucceedInputCollectionParams params, RequestOptions options) throws StripeException Use this endpoint to trigger a successful input collection on a simulated reader.- Throws:
StripeException
-
timeoutInputCollection
Use this endpoint to complete an input collection with a timeout error on a simulated reader.- Throws:
StripeException
-
timeoutInputCollection
Use this endpoint to complete an input collection with a timeout error on a simulated reader.- Throws:
StripeException
-
timeoutInputCollection
Use this endpoint to complete an input collection with a timeout error on a simulated reader.- Throws:
StripeException
-
timeoutInputCollection
public Reader timeoutInputCollection(Map<String, Object> params, RequestOptions options) throws StripeExceptionUse this endpoint to complete an input collection with a timeout error on a simulated reader.- Throws:
StripeException
-
timeoutInputCollection
public Reader timeoutInputCollection(ReaderTimeoutInputCollectionParams params) throws StripeException Use this endpoint to complete an input collection with a timeout error on a simulated reader.- Throws:
StripeException
-
timeoutInputCollection
public Reader timeoutInputCollection(ReaderTimeoutInputCollectionParams params, RequestOptions options) throws StripeException Use this endpoint to complete an input collection with a timeout error on a simulated reader.- Throws:
StripeException
-