src/test/java/com/squareup/connect/api/PaymentsApiTest.java
@Test
    public void completePaymentTest() throws ApiException {
        String paymentId = null;
        CompletePaymentResponse response = api.completePayment(paymentId);

        // TODO: test validations
    }
/**
     * CompletePayment
     *
     * Completes a payment.  By default, payments are set to complete immediately after they are created.  If you set autocomplete to false when creating a payment,  you can complete the payment using this endpoint. For more information, see [Delayed Payments](/payments-api/take-payments#delayed-payments).
     *
     * @throws ApiException
     *          if the Api call fails
     */
CompletePayment
Completes a payment.  By default, payments are set to complete immediately after they are created.  If you set autocomplete to false when creating a payment,  you can complete the payment using this endpoint. For more information, see [Delayed Payments](/payments-api/take-payments#delayed-payments).

@throws ApiException
if the Api call fails
CompletePayment Completes a payment . By default payments are set to complete immediately after they are created . If you set autocomplete to false when creating a payment you can complete the payment using this endpoint . For more information see [ Delayed Payments ] ( / payments - api / take - payments#delayed - payments ) . @throws ApiException if the Api call fails
@Test
    public void completePaymentTest() throws ApiException {
        String paymentId = null;
        CompletePaymentResponse response = api.completePayment(paymentId);
    }
@ Test public void completePaymentTest ( ) throws ApiException { String paymentId = null ; CompletePaymentResponse response = api . completePayment ( paymentId ) ; }
CompletePayment
 Completes a payment.
CompletePayment Completes a payment .
// TODO: test validations