ViaBill
ViaBill allows customers to split up their payments into several rates. If you have set up ViaBill on the Payment Methods page in the Billwerk+ administration, the payment option will automatically be presented in Billwerk+ Checkout.
Notice
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 Billwerk+ 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"
}
}
}'
Updated 8 months ago
What’s Next