Checkout 3.0
Payment link

Function distributes a link to Avarda checkout via text message or email. Customer receives a link what loads the checkout and payment can be fulfilled. The payment link is valid for 24 hours from initialisation and 30 minutes from the first time it has been opened. In order to display the Payment widget you need to implement following steps:

Initialize Payment link

Use Avarda base URLs for Checkout 3.0 Backend API.

Obtain partner access token for authentication needed for Payment widget API.

Send following request to initialize Payment link:

# Initialize Payment link
GET {api_url}/api/instore/partner/initialize
Content-type: application/json
Authorization: Bearer {partner_access_token}

Specify the phone number and email address in Initialize Payment userInputs User inputs.

{
  "userInputs": {
    "phone": "076875580",
    "email": "example@avarda.se",
    "phoneCountryTwoLetterIso": "SE"
  }
}

Return value:

Based on customer preference you can send email, phone or both with a link which loads the checkout and payment can be fulfilled.

Initialize payment extension

User inputs can be extended by ssn.

PropertyTypeDescriptionOptional
ssnstringPrefill personal numberYes
{
  "userInputs": {
    "email": "example@avarda.se",
    "ssn": "exampleSSN"
  }
}

Checkout Setup are extended by hiddenPaymentMethods and customerVerified.

PropertyTypeDescriptionOptional
customerVerifiedboolCustomer verification won't be triggeredYes
hiddenPaymentMethodsarrayOption to hide specific payment methods Payment methods typeYes
{
  "checkoutSetup": {
    "customerVerified": true,
    "hiddenPaymentMethods": ["Invoice", "Loan"]
  }
}