ViaBill allows customer to split up their payments into several rates. If you have setup a ViaBill agreement on the Acquiring page in 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 https://checkout-api.reepay.com/v1/session/charge \
  -u 'priv_xxxx:' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data '{
    "order": {
        "customer_handle": "cust-0001",
        "handle": "viabill-test-1",
        "currency": "DKK",
        "order_lines":[
          {
            "ordertext":"Order text",
            "amount": 1000,
            "vat": 0.25,
            "quantity":1,
            "amount_incl_vat": "true"
          }],
        "settle":false,
        "billing_address":{
          "address":"Strøget 15",
          "city":"Hornbæk","country":"DK",
          "email":"[email protected]","first_name":"Gorm","last_name":"Bøgh",
          "postal_code":"3100","phone":"12345678"
        }
  }
}'