Accept one-tap payments today
on your website or mobile app

1.5% + 0.10€ per transaction
No set-up costs, or monthly fees

Copy and paste the sample code

Please provide us with your name and email address to get access to the button sample code and select your platform.

<div id="lydiaButton">Pay with Lydia</div>

<script type="text/javascript">
  $(document).ready(function() {
    $('#lydiaButton').payWithLYDIA({
      amount: 10.5, // amount in €
      vendor_token: '{{publicToken}}',
      recipient: '0711223344', //cellphone or email of your client. Leave it like this for your test
      message : "Facture 004 pour un t-shirt taille M", //object of the payment
      env: 'test',
      render : '<img src="https://lydia-app.com/assets/img/paymentbutton.png" />', //button image
      // The client will be redirect to this URL after the payment
      browser_success_url : "http://mysite.com/success.php?order_ref=123",
			// This URL will be called by our server after the payment so you can update the order on your database
      confirm_url : "http://mysite.com/confirm.php?order_ref=123"
    });
  });
</script>


// Order Reference
NSString *orderRef = [[NSUUID UUID] UUIDString];
//This URL is called by our server after the payment so you can update the order on your database
NSString *confirmUrl = [NSString stringWithFormat:@"http://mysite.com/confirm.php?order_ref=%@", orderRef];

// Init LYDIA SDK
LYDIASDK *lydia = [[LYDIASDK alloc] initWithPublicKey:@"{{publicToken}}"
                                    andPrivateKey:@"{{privateToken}}"
                                    andDelegate:self];

[lydia setSDKEnvironment:LYDIASDK_Homologation];
// This is your app scheme URL called when the payment request is successful to redirect the user in your app
[lydia setBackApplicationScheme:@"com.test://payment?%@"];
//Init a request of 10.5€
[lydia askAmount:@"10.5"
       withCurrency:@"EUR"
       toPhone:@"0711223344"
       withOrderRef:[[NSUUID UUID] UUIDString]
       andMessage:@"Thanks for your purchase" andConfirmUrl:confirmUrl];

						
{{accountError}} Get the code

Download our development kit and add it to your project

Each kit includes documents to download on your payment page, as well as an integration example.

Web/ javascript

iOS

Android (coming soon)

More plugins are coming soon...

Test the result now

Step 1/3

Please place an order by using the following customer phone number: +33711223344 if you're in France or +442034455275 if you're in the UK or Ireland. Click on the Lydia button that you've integrated in your payment page, and keep both pages open for the next steps.


Status:
No pending payment request

Step 2/3

The payment request has been received. Please accept the payment and continue to step 3.


Status:
You have a pending payment request of {{requests[0]['amount']}}€. It was sent by {{requests[0]['business_name']}}.

Step 3/3

The payment has been approved by the client, who will be redirected to your confirmation page. We called your server so that you can update the order with the information below.


Data returned confirmURL :

{
  "currency": "EUR",
  "request_id": "{{paymentDoneRequestId}}",
  "amount" : "{{paymentDoneAmount}}",
  "signed" :"1",
  "transaction_identifier": "{{paymentDoneIdentifier}}",
  "vendor_token": "{{publicToken}}",
  "order_ref": "<optional>"
}
Reset
Smartphone Simulator
{{requests[0]['business_name']}} {{requests[0]['amount']}} €
Pay

Get started

Contact us to get access to your finalised credentials. We'll give you a more exhaustive set of documents so that you can go even further.

Request my finalised access credentials