Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merchant Facing Tender get EXTRA_ORDER from intent always returns null #55

Open
nickbonnaud opened this issue Jul 8, 2018 · 3 comments

Comments

@nickbonnaud
Copy link

When trying to get payment data from a Merchant Facing Intent, intent.getParcelableExtra(Intents.EXTRA_ORDER) always returns null.

I can get other data from the intent, such as:

intent.getLongExtra(Intents.EXTRA_AMOUNT, 0)
intent.getStringExtra(Intents.EXTRA_ORDER_ID)

However, EXTRA_ORDER always returns null.
I made sure that I included the intent filter in my manifest.xml

<intent-filter>
    <action android:name="clover.intent.action.MERCHANT_TENDER" />
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
@bbuhro
Copy link

bbuhro commented Oct 13, 2020

Did you ever get a resolution on this?

@eleduardo
Copy link

Facing the same issue, as of Jan 2023 this seems to be still happening

@iapon
Copy link

iapon commented Mar 15, 2023

Figured out of this issue,
just use
final String orderId = getIntent().getStringExtra("clover.intent.extra.ORDER_ID");
final Order order = getIntent().getParcelableExtra("com.clover.intent.extra.ORDER");
instead of
final String orderId = getIntent().getStringExtra(Intents.EXTRA_ORDER_ID);
final Order order = (Order) getIntent().getExtras().get(Intents.EXTRA_ORDER);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants