YAML Configuration
3.1. Configuration
Update your basic server settings in the YAML file:
configuration:
wallet_connect_id: ""
payram.backend: "http://yourpayramserver.com:8080"
payram.frontend: "http://yourpayramserver.com:80"
postal.endpoint: "https://postal.bedpayments.com"
postal.apikey: "hwVUvX7kCkTyD5hn4KkiN4rh"
ssl: false
NOTE: Replace "yourpayramserver.com" with either the IP address of the server where you're installing the payram setup, or the domain name to which you've mapped the server's address.
payram.backend
Explanation : Please enter the URL of the server where PayRam is running, or the domain where Payram is configured. If you’re installing payram for first time then enter the IP address of the current server in which you’re setting up
Example:
http://IP:8080
orhttp://yourpayramserver.com:8080
payram.frontend
Explanation: Please enter the URL of the server where PayRam is running, or the domain where Payram is configured. If you’re installing payram for first time then enter the IP address of the current server in which you’re setting up
Example:
http://IP
orhttp://yourpayramserver.com
wallet_connect_id
To obtain a wallet connect id, follow these steps available at https://docs.blockscout.com/setup/configuration-options/walletconnect-project-id-for-contract-read-write
Example: 03ec747d98f19c7c89d10605b6586cc3 this is how the wallet connect id looks like
3.2. Projects
This section contains details for each project configured.
projects:
project1:
name: "Rare Rabbit"
website: "http:yourprojectwebsite.com"
successEndpoint: "http://yourprojectwebsite.com/success" # or use payrams http://yourpayramserver.com:80success
webhookEndpoint: "http://yourprojectwebsite.com/webhook" # or use payrams http://yourpayramserver.com:8080/v1/payment/webhook
Project Parameters
name
Explanation: The name of the project.
website
Explanation: The project's website URL
successEndpoint
Explanation : URL where users are redirected after a successful payment.
Tip: Use your own endpoint or the default Payram endpoint.
http://yourpayramserver.com:80/success
webhookEndpoint
Explanation: URL to retrieve transaction details for payments.
Tip: Use the default endpoint provided by PayRam or set up your own webhook.
[ Generating a Payment Link with PayRam]
http://yourpayramserver.com:8080/v1/payment/webhook
You can add more projects by following this format:
Note: When adding additional projects, follow this format exactly. Incorrect formatting of YAML keys will result in errors.
3.3. Blockchain Settings
This section configures settings for various blockchains used in the application.
There is no need to change any of the existing configuration values except for the server API key in TRX.
After obtaining the server_api_key, paste it into the blockchain > TRX > server_api_key value
blockchain:
ETH:
.......
.......
........
BTC:
......
.....
...........
TRX:
.......
.....
server_api_key: " paste your api key here in the config file"
After you fill in all the configuration details, your YAML file will look like the example below, but with your own values.
Once you’re done with the above configs you can start the server up now go and run the command
rm -f script.sh && curl -sSL -o script.sh https://raw.githubusercontent.com/PayRam/payram-scripts/refs/heads/master/script.sh && chmod +x script.sh && ./script.sh
The script will install all the required dependencies. When prompted, enter an email address and password—these credentials will be used for signing up and logging into the server. This will be actually root details which will be your revenue account inside the payram server.
Note: Be sure to save your email and password in a secure location.
When the script completes, your terminal will display output at the end that looks like the image below:
Last updated