Making action "SALE" instead of "AUTHORIZE"

Hi all,
So, I started using the Cordova plugin, to write an app. The Poynt native code is inside the Poynt.java file. When I launch a payment and it clears, it returns
{
“transactions”:[
{
“action”: “AUTHORIZE”

I want the action to be SALE not AUTHORIZE.

The existing code was

     Long amount = arg_object.getLong("amount");
    String referenceId = arg_object.getString("referenceId");
    String currencyCode = NumberFormat.getCurrencyInstance().getCurrency().getCurrencyCode();
    Payment payment = new Payment();
    payment.setReferenceId(referenceId);
    payment.setCurrency(currencyCode);
    payment.setAmount(amount);

I tried adding

  	payment.setAuthzOnly(false);

But that seemed not to have any effect. Any suggestions?

-Michael

Hi Michael,

Depending on the acquirer set up the purchase action can be either SALE or AUTHORIZE. In your case it looks like the account is configured with purchaseAction=AUTHORIZE. Once the settlement batch runs the auth will get captured. Auth only flag is by default set to false, so your line did not change anything. If you set that flag to true the auth will not get inserted into the open settlement batch.