Checkout

Reference pages: Payment Options, Generate Payment, Hosted Payment Page options, Hosted Fields JSAPI Guide, Pay Sale.

Choose

Hosted page Hosted Fields Saved token
Card typed in PayMe's page, in an iframe or a redirect PayMe's iframes, in your form Nowhere
Buyer present Yes Yes No
Calls generate-sale generate-sale, browser tokenize, pay-sale generate-sale with the token

Default to the hosted page. Add Hosted Fields only when the checkout must look native. Use a token only when no buyer is present (TOK-03 covers raw cards).

Every flow

  1. Create the sale on your server. A partner uses the seller's MPL: the partner's own MPL fails with error 174. Amounts follow Money.
  2. Send your order ID as transaction_id, and store payme_sale_id against the order (SAL-02).
  3. Keep one open sale per order (SAL-01). failed isn't final. After a decline the sale is failed, but the same sale_url still opens, and a good card then completes it. Send the buyer back to that page, don't open a second one, and keep re-reading the sale. Create a new sale only once the previous one is voided or canceled, or its sale_expiry_seconds has passed.
  4. Take a callback or a return page only as a signal to check. Fulfil after a query confirms it (CB-01, CB-09).

Limiting a payment page

Hosted page

Hosted Fields

Saved token

See Saved Cards. Never repeat a token charge whose outcome is unknown before checking the sale (TRN-04).