Create account
Sign in
Home
Payments
Business operations
Financial services
Developer tools
Security
All products
Home
Payments
Business operations
Home
Payments
Business operations
Financial services
Developer tools
Support
Overview
Overview
Sample integration
Example applications
Designing an integration
Integrate your application and readers
Getting started
JavaScript
iOS
Android
Readers
Reader setup
Connecting to a reader
Fleet management
Placing orders
Transactions
Collecting payments
Connect platforms
Saving cards
Refunds
Checkout experience
Cart display
Receipts
Beta
Beta migration guide
Testing
Checklist
Testing
terminal
·
HomePaymentsIn-person payments

Displaying cart details

Dynamically update cart details on the reader screen.

The Verifone P400 reader’s built-in screen can display line items. During the checkout process, you can update the reader’s screen to show individual items in the transaction, along with the total price.

Set the reader display

SDK Reference

  • setReaderDisplay (JavaScript)
  • clearReaderDisplay (JavaScript)

To set the line items and total displayed on the reader during a payment, pass line items and total information into the setReaderDisplay method. The object you pass in will drive the contents displayed on the reader’s screen.

Note that the amounts passed to the setReaderDisplay method are only used for display purposes. The Verifone P400 will not automatically calculate tax or the total; your application must calculate those before displaying the values. Similarly, the total passed to setReaderDisplay does not control the amount charged to the customer; make sure the amount displayed on the reader matches the amount you’re charging your customer.

To reset the Verifone P400’s display from a line item interface to the splash screen, call the clearReaderDisplay method.

terminal.setReaderDisplay({ type: 'cart', cart: { line_items: [ { description: "Caramel latte", amount: 659, quantity: 1, }, { description: "Dozen donuts", amount: 1239, quantity: 1, }, ], tax: 100, total: 1998, currency: 'usd', }, });

Pre-dipping a card

Pre-dipping a card is only supported for payments in the U.S.

The Verifone P400 supports the ability to present a card to the reader before the transaction amount is finalized. This option—known as pre-dip, pre-tap, or pre-swipe—can help speed up transaction times by allowing a customer to present a payment method before the end of the transaction.

The setReaderDisplay method prepares the reader for pre-dipping. The customer can present a payment method at any point after the method is called.

Even if a customer pre-dips their card, your application must still complete the full payment flow.

Was this page helpful?
Questions? Contact us.
Developer tutorials on YouTube.
You can unsubscribe at any time. Read our privacy policy.
On this page
Set the reader display
Pre-dipping a card