ViaBill allows customer to split up their payments into several rates. If you have setup ViaBill on the Payment Methods page in the Reepay administration, the payment option will automatically be presented in Reepay Checkout.

Note the ViaBill payment option is only presented if the currency is supported by ViaBill.

Creating a ViaBill checkout session

You have the option to send a billing address when creating a Reepay checkout session for a ViaBill payment. This allows ViaBill to pre-fill the name / address fields of the customer.

Note that it is not sufficient to reference a customer object. You will have to explicitly set a billing address field on the order-object of the charge call.

Sample request

curl -X POST \
  --url \
  -u 'priv_xxxx:' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data '{
    "order": {
        "customer_handle": "cust-0001",
        "handle": "viabill-test-1",
        "currency": "DKK",
            "ordertext":"Order text",
            "amount": 1000,
            "vat": 0.25,
            "amount_incl_vat": "true"
          "address":"Strøget 15",
          "email":"[email protected]","first_name":"Gorm","last_name":"Bøgh",