API mode or inline mode
The plugin can hand a payment to the phone in two ways. API mode is recommended.
API mode (recommended) |
The QR contains only a one-time token. The phone asks your website for the amount, so the amount always comes from your server. The phone needs no Stripe key. The website needs key B. |
|---|---|
Inline mode |
The amount travels inside the QR and the website stores no Stripe key. The phone needs key C and the operator must check the amount carefully every time. Use it only for websites that must not store any Stripe key. |
In inline mode the website cannot verify the amount, so anyone who hands you a modified QR code from your website can change it. This is why the app shows a warning when you switch the option on, and why you must always check the amount on screen before accepting a card.
Choose the mode in QR2Stripe → Settings → QR mode. Existing QR codes keep the mode they were created with.
In the phone app switch on Pay from data inside the QR (not verified by the website) only for a website that uses inline mode.