Payment address
Speed's payment addresses empower users to create personalized and easy-to-remember addresses for receiving payments. Similar to email addresses, users can customize their payment addresses with names or aliases, streamlining the payment process.
The system allows users to receive multiple payments using either the default domain (tryspeed.com) or their custom payment domain, if added. This flexibility and personalization enhance the user experience and facilitate seamless transactions, making Speed a user-centric and efficient payment platform.
To configure custom payment domains, you can add multiple domains according to your needs.
To configure a custom payment domain via the Speed Web application, simply follow this path:
Settings > Business Settings > Custom Domain > Payment Addresses
Adding a new domain:
- To configure a payment domain, start by clicking on "Add New Domain" in your account settings.
- Enter your domain name, for example, [test.com]
- Click on “Connect domain”.
Configuring payment domains:
Speed will automatically first check whether the required configuration for your domain is already available.
- If the required rules are already added to your domain, the system will recognize it as a valid payment domain ready for use.
- If the system cannot find the required page rules, it will showcase steps for adding them and a verification process based on the domain.
Note: Speed will ensure that the domain is not already added to any other Speed account.
Cloudflare domain:
If your payment domain is hosted on Cloudflare, the system will prompt you to provide two specific requirements: an API key and a zone.
We assure you that Speed does not store your API key for security reasons.
Speed will then create the necessary rules in your domain using the provided API key and zone.
- Initially, the domain will be added with a "connecting" status.
- Upon successful completion of our background process, it will be marked as "ready."
- If Speed encounters any issues while creating the rules, the system will mark it as "fail."
Note: In case you provide an incorrect API key and zone details, an error message will be displayed, and you will be prompted to provide the correct information.
If you want to add the rule on your own, by following these steps, you can easily configure your payment domain and ensure that it is ready to use with Speed:
Cloudflare page rules
- Log in to Cloudflare dashboard.
- Choose the domain to which you wish to add the page rule.
- Navigate to the Rules app by clicking on it.
- Create a Page Rule by specifying the URL or URL pattern, for example,
tryspeed.com
. - Select the desired settings from the dropdown menu, such as adding a forwarding URL and choosing a status code.
- Enter the destination URL, for example,
https://appapi.tryspeed.com/.well-known/lnurlp/acct_lescc488ZUJzbj/test.com/$1
. - Save the page rule by clicking on the "Save page rule" button.
APACHE Server (WordPress)
-
To enable the rewrite modules, run the following command:
sudo a2enmod rewrite
-
In the VirtualHost file for your Apache configuration, include the following settings:
<Directory /var/www/html/wordpress/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>
-
Create a .htaccess file in the /var/www/html folder with the following content:
RewriteEngine on RewriteCond %{QUERY_STRING} ^$ RewriteRule ^\\.well\\-known/(.+)/(.+) `https://appapi.tryspeed.com/.well-known/lnurlp/acct_l6kdtd99taXZnBxD/speed.app/$1` [R=301,L]
-
Check for syntax errors in the Apache configuration using the following command:
sudo apachectl -t
-
Restart the apache2 service to apply the changes on the live server. You can use either of the following commands:
sudo /etc/init.d/apache2 restart (Forcefully Restarted) sudo systemctl restart apache2
Nginx Web Server
-
Install Nginx Server
Open a terminal and run the following command to install Nginx:sudo apt-get install nginx
-
Add Redirection Rules in VirtualHost
Open the Nginx configuration file for your domain. This file is typically located in the/etc/nginx/sites-available/
directory and ends with.conf
. Use a text editor like nano or vim to edit the file. For example:sudo nano /etc/nginx/sites-available/your_domain.conf
Within the server block, add the redirection rule using the if condition:
server { # Other server configurations if ($query_string ~ "^$") { rewrite ^/\\.well\\-known/(.+)/(.+) <https://appapi.tryspeed.com/.well-known/$1/$2> redirect; } # Other server configurations }
Save the changes and close the editor.
-
Check Nginx Syntax Error and Restart Nginx
Check the Nginx configuration for syntax errors using the following command:sudo nginx -t
If there are no syntax errors, you will see a message indicating that the syntax is okay.
If there are no errors, reload Nginx to apply the changes:sudo nginx -s reload
This will gracefully reload the Nginx configuration without interrupting the service.
After following these steps, Nginx will be installed, and the redirection rule will be added to the VirtualHost configuration for your domain.
Application Load Balancer
To add a rule to an Amazon EC2 load balancer:
Using the Console:
- Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
- Navigate to Load Balancers and select the desired load balancer.
- Go to the Listeners tab and open the detail page for the listener.
- On the Rules tab, choose Manage rules.
- Click the Add rules icon in the menu bar.
- Choose one of the Insert Rule icons to add a rule at the specified location.
- Add conditions for the rule based on host header, path, HTTP header, HTTP request method, query string, or source IP.
- Optionally, authenticate users for HTTPS listeners.
- Add an action for the rule, which can be forward to one or more target groups, redirect to a URL, or return a fixed response.
- Save the rule.
Using the AWS CLI:
- Use the
create-rule
command to create the rule. - Use the
describe-rules
command to view information about the rule.
Updated 2 months ago