Select version
v7.7 v7.6 v7.5 v7.3 v7.1 v7.0 v6.8 v6.7 v6.6 v6 v5 v4 v3 v2

Setup uCommerce to Include Schibsted as a Payment Method

This guide will walk you through setting up the Schibsted payment provider with uCommerce. Our Schibsted payment integration uses the default API endpoints for creating, capturing and refunding payments. Payments are created via Schibsted PayLinks.

Settings in uCommerce

Add a new payment method, under “uCommerce –> Settings –> Orders –> Payment Methods”. You can call it whatever you like, here I have used “Schibsted”.

image

Select the newly created node, and choose the "Schibsted" option as the Service. You generally want to choose the Checkout pipeline for the payment method.

Fill out the rest of the required information in the Access, Pricing and language tabs.

image

That's all you have to set up from the uCommerce interface.

Editing the Schibsted.config File

The next thing you have to configure, is the Schibsted.config file.

You will find the Schibsted.config file in the following location: “\UCommerce\Configuration\Schibsted.config”.

image

clientId: The client id from the application that was set up in Schibsted. clientSecret: The client secret for your application. callbackUrl: The callback URL for the payment callbacks, the default settings should be sufficient for most use cases. acceptUrl: The URL that the user gets redirected to after a successful order. cancelUrl: The URL that the user gets redirected to if the user cancels the payment. autoCapture: If the payment should be captured instantly, the default behaviour will only authorize the payment. paymentOptions: A bitmask value based on this table (taken from the schibsted wiki):

Default value (2) is for credit cards only. debug: Shows debug information before redirecting the user to the payment. testMode: Specifies if the payment method should use the stage or the live API.

image

Enabling capture, cancel and refund in the uCommerce back-end.

To enable uCommerce to do these operations via the Schibsted API, you need to enable two pipeline tasks. The pipeline configurations can be found in “/ucommerce/pipelines”. The first pipeline configuration you need to edit, is ToCancelled.config. Just uncomment the “ToCancelled.CancelPaymentTask” task.

image

Same thing for the ToCompletedOrder.config pipeline.

image

The uCommerce client processes

Here is a short description of how the APIs are used in the uCommerce client.

Payment process:

image

Capture order:

image

Cancel order:

image

Refund order:

image

API Error Handling

In the event of an error in the API calls from the uCommerce client, all the error codes will be logged to the umbracoLog table in the uCommerce database. The JSON error response from the API is stored as the error value in the log.

SPiD Callbacks

uCommerce does not support SPiD callbacks at this time. All order management should be done through the uCommerce back office.

uCommerce Aps - Studsgade 29B - 8000 Aarhus C - Denmark
Phone +45 61 799 997 - Email info@ucommerce.dk uCommerce logo