Authorize.net API gives null response on ChargeCreditCard

Detection score: 4.0

<p>I am facing similar issue , can you please let me know how you fixed it ?</p>

<pre><code>Response:
02/13/18 12:39:19,108:  INFO [pool-1-thread-1]     (net.authorize.util.LogHelper:24) - Use Proxy: 'false'
Null Response.
</code></pre>

<p>code:</p>

<pre><code> ApiOperationBase.setEnvironment(Environment.SANDBOX);
    MerchantAuthenticationType merchantAuthenticationType  = new    MerchantAuthenticationType() ;
    merchantAuthenticationType.setName("sandbox-login id");
    merchantAuthenticationType.setTransactionKey("sandbox trANSACTION KEY ");
            ApiOperationBase.setMerchantAuthentication(merchantAuthenticationType);

        // Populate the payment data
        PaymentType paymentType = new PaymentType();
        OpaqueDataType OpaqueData = new OpaqueDataType();
        OpaqueData.setDataDescriptor("COMMON.ACCEPT.INAPP.PAYMENT");
        OpaqueData.setDataValue("119eyJjb2RlIjoiNTBfMl8wNjAwMDUyN0JEODE4RjQxOUEyRjhGQkIxMkY0MzdGQjAxQUIwRTY2NjhFNEFCN0VENzE4NTUwMjlGRUU0M0JFMENERUIwQzM2M0ExOUEwMDAzNzlGRDNFMjBCODJEMDFCQjkyNEJDIiwidG9rZW4iOiI5NDkwMjMyMTAyOTQwOTk5NDA0NjAzIiwidiI6IjEuMSJ9");
        paymentType.setOpaqueData(OpaqueData);

        // Create the payment transaction request
        TransactionRequestType txnRequest = new TransactionRequestType();
        txnRequest.setTransactionType(TransactionTypeEnum.AUTH_CAPTURE_TRANSACTION.value());
        txnRequest.setPayment(paymentType);
        txnRequest.setAmount(new BigDecimal(0).setScale(2, RoundingMode.CEILING));

        // Make the API Request
        CreateTransactionRequest apiRequest = new CreateTransactionRequest();
        apiRequest.setTransactionRequest(txnRequest);
        CreateTransactionController controller = new CreateTransactionController(apiRequest);
        controller.execute();
</code></pre>
Posted 11 days ago | reported 11 days ago
Posted by Vijay Raghavan (1)

Caught by 3 reasons: