Create PaymentTransaction

        Create a new PaymentTransaction
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.create_payment_transaction(payment_transaction, async=True)
        >>> result = thread.get()

        :param async bool
        :param PaymentTransaction payment_transaction: Attributes of paymentTransaction to create (required)
        :return: PaymentTransaction
                 If the method is called asynchronously,
                 returns the request thread.

def create_payment_transaction(cls, payment_transaction, **kwargs):
        """Create PaymentTransaction

        Create a new PaymentTransaction
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.create_payment_transaction(payment_transaction, async=True)
        >>> result = thread.get()

        :param async bool
        :param PaymentTransaction payment_transaction: Attributes of paymentTransaction to create (required)
        :return: PaymentTransaction
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async'):
            return cls._create_payment_transaction_with_http_info(payment_transaction, **kwargs)
        else:
            (data) = cls._create_payment_transaction_with_http_info(payment_transaction, **kwargs)
            return data