This page outlines the basics of using Walley via Netaxept and gives you instructions needed for a successful implementation.
Before you start
Walley is a payment method available in the Nordic region, offering Buy Now, Pay Later options both for B2B and B2C payments.
For the invoice payment method, the call-response sequence generally follows the card payment flow as described in the Payment Flow - Outline section. However, there are a few differences:
Additional parameters are required for invoices.
In the case of Walley B2B and B2C hosted solution, the customer will be directed to the Walley website (instead of to the Netaxept hosted payment window) to enter the required payment details. On this phase, Strong Customer Authentication (SCA) will be triggered if that is supported by the service provider.
Invoice payment methods don't support all financial operations. Therefore, you should define the
paymentMethodActionList parameter of the Register call to separate invoice from other payment methods in the checkout phase.
Since the customers payment method is submitted to a third party, you should identify what payment method has been used by sending the Query call after the Terminal phase.
2. User Journey
When your customers choose invoice as a payment method, they are directed either to the Netaxept payment window or to the website of the chosen invoice service provider.
Here, the customer is guided through the payment process and will then be redirected to the
redirectURL as specified in the Register call.
The invoice service provider then sends an invoice to the customer and settles the payment to you within the agreed time.
3. Required Register call parameters
When using invoice as a payment method, in addition to the Register call parameters as described before, more parameters become required.
The Register Call's numberOfGoods parameter is mandatory for invoices. It's value determines, how many different items are invoiced.
If you are implementing SOAP instead of RESTfulAPI, the organization of parameters is different: Here the Register call's
Order object contains a
Goods object, which is mandatory for all invoice payments.
The Goods object contains an array of Items and its set of parameters. One Item object represents one product item.
numberOfGoods in Register call - Line breaks for readability
https://test.epayment.nets.eu/Netaxept/Register.aspx? merchantId=xxxxxxxx& token=xxxxxxxx& ordernumber=order852&
In the example above, the Number of Goods is 2, indicating two items. The following parameters (
IsVatIncluded_1) refer to the first item.
The parameters are then repeated for the second item:
title_2 and so on.
This can be repeated, but the number of items (n) must be defined in the numberOfGoods parameter:
Please note, that for each item
articleNumber are mandatory parameters.
For invoice, to send customer information becomes mandatory. You can either pass on this information with the Register call, or collect the data on the Netaxept hosted payment window, if it is part of your implementation for the invoice payment flow.
In addition to
- customer's country (
- name (
- address (
- post code (
- town (
as shown in the example above, parameters such as
- email address (
- phone number (
- social security number (
are required as well for most providers.
After the invoice has been created but not yet activated (by sending the PROCESS call) it is possible to change the invoice by replacing it's content through your Netaxept Admin account. The Replace function allows you to remove or add order rows, or to change article number, title, quantity, amount or VAT on a specific order row. After you have done the desired changes, you can update the pending invoice by clicking the “Replace” button. Now the new invoice with the updated order rows is ready to be activated.
4. Strong customer authentication (SCA)
As of today, SCA is supported for Walley by including the
validateCustomer="true" parameter in the Register call to Netaxept. When using this parameter, the
transactionId must be at least 21 characters in length. The authentication method is determined based on the following combinations:
- Finland when customerCountry=FI and currencyCode=EUR
- Norway when customerCountry=NO and currencyCode=NOK
- Sweden when customerCountry=SE and currencyCode=SEK
- Denmark when customerCountry=DK and currencyCode=DKK
5. Partial credits and capture
To initiate partial credit for an invoice, you need to send the Process(Credit) call and provide the details related to the specific transaction in question to Netaxept.
quantity_1, all other parameter values must remain consistent with the parameters for the same item in the original invoice. In other words, if an item in the initial invoice had, for example, VAT_1= 24%, then the same item and VAT percentage must be repeated in the Process(Credit) call.
Partial capture - line breaks for readability
https://test.epayment.nets.eu/Netaxept/Process.aspx? merchantId=MERCHANTID& token=TESTTOKEN& transactionId=TRANSACTIONID&
The example above builds on the example given for invoices earlier:
Let's assume you want to refund the payment for just 100 out of the 200 pencils that have been ordered and invoiced.
amount is the amount you want to return: 5000 EUR (100 pencils for 50 EUR each). The
numberOfGoods parameter has been changed to 1, since only pencils and no additional items have been returned. The
quantity_1 has also changed to 100 (the amount of pencils you want to refund).
amount_1 (the price for each pencil) remains the same as in the initial invoice: 50 EUR.
When running partial capture, the Process(CAPTURE) call must contain the
numberOfGoods parameter. The corresponding parameter for the item for which you want to capture the funds must be added, similiar to Process(CREDIT) call as shown before.
As an immediate response to your Process(CAPTURE) (or Process(SALE)) call, you'll get the
SubTransactionId. You can also fetch it later, using the Query call.
SubTransactionId is required when you want to credit the amount of the partial capture.
6. Adjusting the invoice amount - Process(ADJUST)
After an invoice has been activated, you can make adjustments to the invoice's amount with the Process(ADJUST) call.
Adjustments are used for discounts, price adjustments, delivery and surcharge charges. You can't make adjustments per item individually, it always affects the total invoice amount.
Before you can send the Process(ADJUST) call, the Process(CAPTURE) has to be sent.
Required parameters are:
Positive(amount added to the invoice) or
Goods: an array of item entries, each of them representing one product
SubTransactionID: is mandatory, if the adjustment is made on a partially captured transaction.
You can run the Query call to retrieve the adjusted details for a transaction. Adjusted information for a transaction is available in Netaxept Admin as well.
Code Sample: Adjusting the invoice amount - linebreaks for readability
https://test.epayment.nets.eu/Netaxept/Process.aspx? merchantId=xxxxxxxx& token=xxxxxxxx& transactionId=f48eecacdbbc45f7a82b8eec6544cdf8&