• France
status page
Demo shops
assistance
FAQContact support
Search
Categories
Tags
docs.
France
Spain
Europe (English)
India
Homepage
Use cases
Create a payment
Create an installment payment
Create a multi-card (split) payment
Create a payment by Alias (Token)
Create a payment link
Create a recurring payment
Manage subscriptions
Manage your transactions (refund, cancel...)
Analyze your reports
API docs
Embedded Form
REST API
Hosted payment
Mobile payment
File exchange
SDD mandates by REST API
Snippets
Payment methods
Plugins
Marketplace
Guides
Merchant Back Office
Back Office Expert
Functional guides

Zero-click payment

This mode allows you to create a transaction without displaying the payment form and without authentication (server-to-server call).

Without authentication, the merchant is not protected against the risks of fraud and, more specifically, in case of cardholder opposition.

Prerequisites: create a token

  • For more information: Token creation.

Using a token

Request

For payment by card

Champs attendus :

  • amount : 9.90 €.
  • token: fieldpaymentMethodToken= "b6e51ba31f934ac5b25ccad2a52ccd56".
  • Chaining reference: fieldtransactionOptions.cardOptions.initialIssuerTransactionIdentifier= "736070(...)0709304"
  • formAction:SILENT.

Lors de la création de l'alias, récupérez la référence de chaînage dans le champ initialIssuerTransactionIdentifier de l'objet transactions[0].transactionDetails.cardDetails. Vous devez l'utiliser pour chaque demande de paiement. Cette référence est importante sinon les émetteurs peuvent refuser la transaction en cas d'absence de chaînage ("Soft Decline").

/en-EN/rest/V4.0/api/kb/authentication.html
https://api.lyra.com/api-payment/V4/Charge/CreatePayment
    {
        "amount": 990,
        "currency": "EUR",
        "paymentMethodToken": "b6e51ba31f934ac5b25ccad2a52ccd56",
        "transactionOptions": {
            "cardOptions": {
              "initialIssuerTransactionIdentifier": "736070(...)0709304"
            }
          },
       "formAction": "SILENT"
    }

For a SEPA direct debit request

Prérequis : Disposer d'un mandat de prélèvement récurrent (Réference Unique de Mandat) associé à un alias.

Required fields:

  • amount : 9.90 €.
  • RUM: fieldpaymentMethodToken=0d75bd5f1fef4e779a4154e65abb39ca
  • formAction:SILENT.
/en-EN/rest/V4.0/api/kb/authentication.html
https://api.lyra.com/api-payment/V4/Charge/CreatePayment
    {
        "amount": 990,
        "currency": "EUR",
        "paymentMethodToken": "0d75bd5f1fef4e779a4154e65abb39ca",
        "formAction": "SILENT"
    }

Response

The call is made from one server to another with creation of a transaction (without end of payment notification: IPN).

Example transaction
{
    "shopId": "69876357",
    "orderCycle": "CLOSED",
    "orderStatus": "PAID",
    "serverDate": "2018-09-27T14:02:17+00:00",
    "orderDetails": (...)
    "customer": (...)
    },
    "transactions": [{
        "shopId": "69876357",
        "uuid": "5b158f084502428499b2d34ad074df05",
        "amount": 990,
        (...)
        "_type": "V4/PaymentTransaction"
    }],
    "_type": "V4/Payment"
}

Pour connaître l'intégralité et la description des champs, consultez le playground : answer/Transaction.

Jobs
Legal
GDPR
25.18-1.11