question

kdm2020 avatar image
kdm2020 asked

How to get list of items ordered in register app in my custom tender app?

I am trying to get the items ordered through register app in my custom tender app using below lines of codes:

final Order order = getIntent().getParcelableExtra(Intents.EXTRA_ORDER);
List<LineItem> items = new  ArrayList<LineItem> ();
items = order.getLineItems();
List<String> itemIds = getIntent().getStringArrayListExtra(Intents.EXTRA_LINE_ITEM_IDS);


But both 'items' and 'itemsIds' are assigned null value.

Following is my manifest file:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.kdm.testapp">

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.INTERNET" />

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:usesCleartextTraffic="true"
    android:theme="@style/AppTheme"
    tools:ignore="GoogleAppIndexingWarning">
    <activity
        android:name=".TestTenderInitActivity"
        android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name=".MerchantFacingTenderActivity"
        android:exported="true"
        android:label="@string/title_activity_test_tender
        <intent-filter>
            <action android:name="clover.intent.action.MERCHANT_TENDER" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
</application>

</manifest>


PaymentsCustom Tenders
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community