
Paymentfarm
Website: [paymentfarm.com/(https://paymentfarm.com/)
Set up Account
Step 1: Create H2H Merchant account
Step 2: Get required credentials
Credentials that have to be issued:
- Authorization key
- Header token
Connect H2H Merchant account
Step 1. Connect Provider account at the Dashboard
Press Connect at page in 'New connection'.

Enter credentials:
- Authorization key
- Header token
Success
You have connected Paymentfarm Provider account!
API examples:
Minimum\Maximum data set to create a transaction for SALE
SALE
POST /api/payment-invoices HTTP/1.1
{
"data": {
"type": "payment-invoice",
"attributes": {
"reference_id": "1f2aa3ca-abd8-4741-980d-4017ed30cb8c",
"service": "payment_card_eur_hpp",
"currency": "EUR",
"amount": 5,
"customer": {
"reference_id":"8c5a4832-45fc-49ad-bb8f-f38a4c46c685",
"name":"John Wick",
"email":"test@test.com",
"phone":"445556667788",
"address": {
"region": "London",
"country":"AW",
"city":"City",
"street":"Street",
"post_code":"Postcode"
}
},
"test_mode": false
}
}
}
Minimum data set to create a transaction for SALE
SALE
POST /api/payment-invoices HTTP/1.1
{
"data": {
"type": "payment-invoice",
"attributes": {
"reference_id": "1f2aa3ca-abd8-4741-980d-4017ed30cb8c",
"service": "payment_card_eur_hpp",
"currency": "EUR",
"amount": 5,
"customer": {
"reference_id":"8c5a4832-45fc-49ad-bb8f-f38a4c46c685",
}
},
"test_mode": false
}
}
}
Constants

If some parameters are not sent in the transaction creation request, they will take the values from the set constants.
Here is a list of constants with their corresponding parameters:
- COUNTRY → customer [address] [country]
- CITY → customer [address] [city]
- POST_CODE → customer [address] [post_code]
- REGION → customer [address] [region]
- STREET → customer [address] [street]
- FIRST_NAME → customer [first_name]
- LAST_NAME → customer [last_name]
- EMAIL → customer [email]
- PHONE → customer [phone]
Still looking for help connecting your Paymentfarm account?