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