Build Your Gateway

Payrexx comes into play as soon as your buyer has submitted his data on your website and starts the payment.

Gateway Creation

Please read the API reference for all necessary information.

You will learn about API request basics at Payrexx and can continue with creating a Gateway.

Payload

Besides the required data, you are free to choose what you want to transfer to Payrexx. Here are some parameters that might be interesting for you:

All Possible Fields

  • title

  • forename

  • surname

  • company

  • street

  • postcode

  • place

  • country

  • delivery_title

  • delivery_forename

  • delivery_surname

  • delivery_company

  • delivery_street

  • delivery_postcode

  • delivery_place

  • delivery_country

  • phone

  • email

  • date_of_birth

  • terms

  • privacy_policy

  • custom_field_1

  • custom_field_2

  • custom_field_3

  • custom_field_4

  • custom_field_5

Examples

fields[forename][value]=John
fields[lastname][value]=Doe
fields[email][value]=john@doe.com
fields[street][value]=Burgstrasse 20
fields[postcode][value]=3600
fields[place][value]=Thun
fields[country][value]=CH

Languages

If multi-language support is enabled in the merchant backend, it is possible to provide multiple language translations in the API for Name and Description attributes.

Each language is identified by an ID:

Examples

# Without translation
fields[custom_field_1][name]=Fieldname 

# With German and English translation
fields[custom_field_1][name][1]=Feldname
fields[custom_field_1][name][2]=Fieldname

Response

After the gateway was created successfully, you will get a link in the response of your request. Redirect the shopper to this link for processing the payment.

Also, store the gateway ID in your software, you might need this later.

Payment

Your shopper can choose a payment method in the Gateway and process the payment:

After Payment

The shopper is redirected to the matching URL depending on the outcome of the payment process. (success-/cancel-/failedRedirectUrl)

The decision of whether a transaction was successful should not be made based on the redirect URL used. Always use the Payrexx Webhook or API to determine a transaction status.

Next Steps

Now you have to perform further steps based on the payment result.

Last updated