question

softpoint avatar image
softpoint asked softpoint commented

Straight To Payments Page

How can you bypass the home and order page and just go straight to the payments page for a check?

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.

Jeffrey Blattman avatar image
Jeffrey Blattman answered softpoint commented

To start the pay screen for a given order,

  Intent payIntent = new Intent("com.clover.intent.action.PAY");
  payIntent.putExtra(Intents.EXTRA_TRANSACTION_TYPE, Intents.TRANSACTION_TYPE_PAYMENT);
  payIntent.putExtra("com.clover.intent.extra.ORDER_ID", orderId);
  startActivityForResult(payIntent, ...);

Note that you must have previously created an order, or otherwise have an order ID.

As for your "for a check" comment, are you saying you want to pre-select the "check" tender type? Sorry, but there is no way to do that.

Note that we haven't captured the intent action and extras key as constants in our SDK (hence the hardcoded strings). I've created an internal issue to track and resolve that.

2 comments
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.

where we execute this from? Its not clear how after pin in we do this? It’s it a script we need to do?

0 Likes 0 ·

That's code that needs to run in an application deployed to a Clover device. Maybe I don't understand the context of your question. Are you a developer? Can you elaborate?

0 Likes 0 ·
anthonypinto avatar image
anthonypinto answered

As an update to @jeff 's original answer: the intent he referenced has now been codified in our SDK Intents as Intents.ACTION_CLOVER_PAY you can read more about it in the javadoc

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.

Welcome to the
Clover Developer Community