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:

ParameterData TypeDescription
successRedirectUrlstringAfter a successful payment, a redirection to this URL is made
failedRedirectUrlstringAfter a failed payment, a redirection to this URL is made
cancelRedirectUrlstringAfter a cancelled payment, a redirection to this URL is made
pmstring[]Restrict the available payment methods with the according ​identifiers
preAuthorizationboolProcess a tokenization payment. Find out more
​​reservationboolProcess a pre-authorization payment. Find out more
referenceIdstringThis can be used to assign the Payrexx transaction to an order later on
fields​​arrayCustomer data goes here
skipResultPageboolSkip the Payrexx result page
chargeOnAuthorizationboolTokenization - Execute an initial charge immediately
validityintFor how long should your payment gateway be available
subscriptionStateboolSet to true if you want to execute subscriptions
subscriptionIntervalstringSubscription - Payment interval (PHP interval spec)
subscriptionPeriodstringSubscription - Duration (PHP interval spec)
subscriptionCancellationIntervalstringSubscription - How long a cancellation is possible (PHP interval spec)
lookAndFeelProfilestringIf you got multiple Look & Feel profiles, decide which one to use

All Possible Fields

  • title
  • forename
  • surname
  • company
  • street
  • postcode
  • place
  • phone
  • country
  • 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

Response

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


Payment

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

Payment process

After Payment

Depending on the payment outcome process, the shopper is redirected to the matching URL. (success-/cancel-/failedRedirectUrl)


Next Steps

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