Payment by token
To use a token referenced in an order, add the alias attribute when creating the order.
Example:
Request
POST https://secure.lyra.com/marketplace/orders?expand=items
Body
{ "marketplace": "ebfb36ab-2d30-4326-adb9-e16b0c9a89f3", "reference": "Exemple MKP BURO", "description": "Commande fournitures", "currency": "EUR", "alias": "1144951ea7ab42989c97159b3dfc0382", ... }
By calling “execute” on this order, the payment will be made via the payment page with the token that has “1144951ea7ab42989c97159b3dfc0382” as an alias.
By calling “execute-embedded” on this order, the payment will be made via the embedded form with the token that has “1144951ea7ab42989c97159b3dfc0382” as an alias.
By calling “execute/token”, the token will also be updated via the payment page with the information contained in the order.
By calling “execute-embedded/token”, the token will also be updated via the embedded form with the information contained in the order.