src/test/java/com/squareup/connect/api/PaymentsApiTest.java
@Test
    public void createPaymentTest() throws ApiException {
        CreatePaymentRequest body = null;
        CreatePaymentResponse response = api.createPayment(body);

        // TODO: test validations
    }
/**
     * CreatePayment
     *
     * Charges a payment source, for example, a card  represented by customer&#39;s card on file or a card nonce. In addition  to the payment source, the request must also include the  amount to accept for the payment.  There are several optional parameters that you can include in the request.  For example, tip money, whether to autocomplete the payment, or a reference ID to correlate this payment with another system.  For more information about these  payment options, see [Take Payments](/payments-api/take-payments).  The &#x60;PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS&#x60; OAuth permission is required to enable application fees.
     *
     * @throws ApiException
     *          if the Api call fails
     */
CreatePayment
Charges a payment source, for example, a card  represented by customer's card on file or a card nonce. In addition  to the payment source, the request must also include the  amount to accept for the payment.  There are several optional parameters that you can include in the request.  For example, tip money, whether to autocomplete the payment, or a reference ID to correlate this payment with another system.  For more information about these  payment options, see [Take Payments](/payments-api/take-payments).  The `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission is required to enable application fees.

@throws ApiException
if the Api call fails
CreatePayment Charges a payment source for example a card represented by customer ' s card on file or a card nonce . In addition to the payment source the request must also include the amount to accept for the payment . There are several optional parameters that you can include in the request . For example tip money whether to autocomplete the payment or a reference ID to correlate this payment with another system . For more information about these payment options see [ Take Payments ] ( / payments - api / take - payments ) . The ` PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS ` OAuth permission is required to enable application fees . @throws ApiException if the Api call fails
@Test
    public void createPaymentTest() throws ApiException {
        CreatePaymentRequest body = null;
        CreatePaymentResponse response = api.createPayment(body);
    }
@ Test public void createPaymentTest ( ) throws ApiException { CreatePaymentRequest body = null ; CreatePaymentResponse response = api . createPayment ( body ) ; }
CreatePayment
 Charges a payment source, for example, a card  represented by customer&#39;s card on file or a card nonce.
CreatePayment Charges a payment source for example a card represented by customer&#39 ; s card on file or a card nonce .
// TODO: test validations