× Docs Merchant checkout Log in

1. Authentication

The customer arrives on your web page in the browser and selects the Pay with Mobie checkout option. The customer is prompted to authenticate their Mobie account by providing their email and password.

Endpoints

URL methods
https://api.mobiepay.io/3/auth/login/ POST

Javascript example code:

mobie.auth.login({
    user: "joe@example.com",
    company: "mobie_prod",
    password: "joe1234"
}).then(function(user){
    ...
},function(err){
    ...
})

The API will return a success response with the user details and the javascript SDK will handle the storing of the authentication token for use on subsequent requests.