compile âco.poynt.api:android-api-model:1.2.94@jarâ
compile âco.poynt.android.sdk:poynt-sdk:1.2.24@aarâ
Whenever I try to make the payment, I get a dialog with âUnfortunately Capability Manager has stoppedâ.
Payment function which I am using:
private void launchPoyntPayment(String paymentValue) {
String currencyCode = NumberFormat.getCurrencyInstance().getCurrency().getCurrencyCode();
Payment payment = new Payment();
String referenceId = UUID.randomUUID().toString();
payment.setReferenceId(referenceId);
payment.setAmount(Math.round(Double.parseDouble(paymentValue)*100));
payment.setCurrency(currencyCode);
payment.setOrderId(UUID.randomUUID().toString());
// start Payment activity for result
try {
Intent collectPaymentIntent = new Intent(Intents.ACTION_COLLECT_MULTI_TENDER_PAYMENT);
collectPaymentIntent.putExtra(Intents.INTENT_EXTRAS_PAYMENT, payment);
startActivityForResult(collectPaymentIntent, COLLECT_PAYMENT_REQUEST);
} catch (ActivityNotFoundException ex) {
Log.e(TAG, "Poynt Payment Activity not found - did you install PoyntServices?", ex);
}
}