How to install the Axur Cardstream integration through Azion Marketplace
Axur Cardstream is an integration that helps you protect your e-commerce from fraud even on the first purchase and, consequently, avoid the chargeback.
It’s a global list of cards leaked on the Internet, as well as the deep and dark web. With the API active, every time your client makes a purchase, you can check if the card has been exposed, request additional verification, or even cancel the transaction.
Requirements
To start using this integration, you need to:
- Create an Axur account.
- Get an Axur API Token.
Getting the integration
To install this integration:
- Access Azion Console > Marketplace.
- On the Marketplace homepage, select the Cardstream card.
- On the integration page, click the Install button.
You’ll see a message indicating that your integration was successfully installed.
- Access Real-Time Manager (RTM) > Marketplace.
- On the Marketplace homepage, select the Cardstream card.
- On the integration page, click the Get It Now button, located at the bottom-right corner of the page.
You’ll see a message indicating that your integration was successfully installed.
Configuring the integration
Once you’ve installed the Axur Cardstream integration, you’ll need to complete the steps explained below to configure it.
Setting up an edge firewall
Follow the steps:
- On the upper-left corner, open the Products menu and select Edge Firewall in the Secure section.
- Click the + Edge Firewall button.
- Give an easy-to-remember name to your edge firewall.
- Enable the Edge Functions switch in the Modules section.
- This action gives access to edge functions on your edge firewall.
- Click the Save button.
Done. Now you’ve instantiated the edge firewall for your function and have access to edge functions on your edge firewall.
- On the upper-left corner, open the Products menu and select Edge Firewall in the SECURE section.
- Click the Add Rule Set button.
- Give an easy-to-remember name to your edge firewall.
- Select the domains you want to protect with the function.
- Enable the Edge Functions switch in the Modules section.
- This action gives access to edge functions on your edge firewall.
- Click the Save button.
Done. Now you’ve instantiated the edge firewall for your function and have access to edge functions on your edge firewall.
Setting up the Edge Firewall function
While still on the Edge Firewall page:
- Select the Functions Instances tab.
- Click the + Function Instance button.
- Give an easy-to-remember name to your instance.
- On the dropdown menu, select the Axur Cardstream function.
- In the Arguments box, pass your variables:
{ "card_number_field": "cc_number", "api_key": "YourAxurAPIKey",
}
Where:
Variable | Mandatory | Description |
---|---|---|
card_number_field | Yes | The number of the credit card used in the transaction |
api_key | Yes | The API Key of your Axur account |
- Click the Save button.
- Select the Functions tab.
- Click the Add Function button.
- Give an easy-to-remember name to your instance.
- On the dropdown menu, select the Axur Cardstream function.
This action will load the function, showing a form with the function’s source code and two tabs: Code and Args. By clicking on the Code tab, you’ll be able to navigate through the source code, but won’t be able to change it.
- In the Args tab, pass your variables:
{ "card_number_field": "cc_number", "api_key": "YourAxurAPIKey",
}
Where:
Variable | Mandatory | Description |
---|---|---|
card_number_field | Yes | The number of the credit card used in the transaction |
api_key | Yes | The API Key of your Axur account |
- Click the Save button.
Setting up the Rules Engine
To finish, you must set up a rule in Rules Engine to configure the criteria and the behavior to run the function.
Still in the Edge Firewall page:
- Select the Rules Engine tab.
- Click the + Rule Engine button.
- Give an easy-to-remember name to the rule.
- Select a criteria to run and catch the domains that you want to run the integration on.
- Example: if
Host
matchesyourdomain.com
.
- Below, select a behavior to the criteria. In this case, it’ll be Run Function.
- Select the adequate function according to the name you gave it in the instantiate step.
- Click the Save button.
On the Console, you must now configure your domain so it is protected by your Edge Firewall.
- On the Products menu, select Domains.
- Click on the domain you want to protect with your Cardstream function.
- In the Settings section, click on the
Edge Firewall
selector and choose the Edge Firewall you’ve just created. - Click the Save button.
Done. Now the Axur Cardstream integration is running.
- Select the Rules Engine tab.
- Click the New Rule button.
- Give an easy-to-remember name to the rule.
- Select a criteria to run and catch the domains that you want to run the integration on.
- Example: if
Host
matchesyourdomain.com
.
- Below, select the Run Function behavior to the criteria.
- Select the Axur Cardstream function according to the name you gave it before.
- Click the Save button.
Done. Now the Axur Cardstream integration is running.