File Fields

Added v0.2.40
Column Type varchar

Description

This field will allow the user to enter an Amazon Standard Item Number (ASIN) and will check that it is valid.

Requirements

API

Install apai-io.

composer require exeu/apai-io:~2.0

Credentials

Add an amazon entry in config/services.php. This should include access_key_id, secret_acces_key as well as a default_locale and a valid Amazon Associate tag in the corresponding entry in the locales array.

You can then add additional locales as needed.

Read more information on how to get these credentials.

<?php

return [
    // ...

    'amazon' => [
        'default_locale' => 'co.uk',
        'access_key_id' => env('AMAZON_ACCESS_KEY_ID'),
        'secret_access_key' => env('AMAZON_SECRET_ACCESS_KEY'),
        'locales' => [
            'co.uk' => [
                'associate_tag' => 'my-uk-associate-tag-123',
            ]
            'com' => [
                'associate_tag' => 'my-us-associate-tag-321',
            ]
        ],
    ]
]