• France
status page
Demo shops
assistance
FAQContact support
Search
Categories
Tags
Europe (English)
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

Receiving the Payment URL

The payment gateway returns a response in JSON format containing an HTTP success or error status code.

Success

In case of success, the payment gateway returns an HTTP status code 200 OK.

The response contains the payment URL where the mobile application must redirect the buyer.

{
"status":"INITIALIZED",	"redirect_url":"https://secure.lyra.com:443/vads-payment/exec.refresh.a;jsessionid=CE2Cb9daEDe7f6dBF31FE65e.vadpayment01bdx"}

Error

In case of error, the payment gateway returns an HTTP status code 400 Bad Request or 500 Internal Server Error.

The response will contain the details of the error.

{
"status":"ERROR",	"error":" {"code": "09", "value": "Missing or invalid parameter value"}"
}

For more details, see the list of error codes of the Hosted Payment Page Implementation Guide:

https://lyra.com/doc/en/collect/error-code/error-00.html

Jobs
Legal
GDPR
25.18-1.11