Redirect to Payment Page

The first step in integration of Payment Page solution is simply by redirecting your customer to the Payment Page. To do that, redirect your customer to the following endpoint:

http://api.centili.com/payment/widget

By redirecting the customer to the endpoint, you initiate the payment process. The customer is presented with a payment flow, which is predefined for your service. The flow is determined by API key parameter which is issued to you by Centili.

📘

Note:

Available flows and mandatory steps are depending on particular country and operator's regulations and rules.

You can check our site for available flows and technologies.

API key is the only mandatory parameter, and is defined and issued for each service separately.
By adding the API key parameter, you should get a redirect URL, similar to one shown in the following example:

http://api.centili.com/payment/widget?apikey=971014d1755c5a07de61e6a8751655cb

The resulting URL will automatically open a localized page in language of the country where you opened it from. The customer should be presented with the page that looks like this:

267

Example Payment Page - Entry page

In case of successful initiation of the payment process, Centili will complete all the steps needed for successful transaction.

There is a variety of optional parameters that you could use to communicate with Payment Page and control its behavior. The following table shows a complete list of parameters which can be used with the endpoint:

ParameterTypeDescriptionExampleRequired
apikeystringCentili issued service key, unique for every payment service. Consists of alphanumeric characters and counts up to 32 characters.f31a355df6dad07e49ba474db7ff9b07 mandatory
pricedecimalBy providing this parameter, price selection step is skipped.1.45optional
msisdnstringCustomer phone number.
By providing this parameter, MSISDN entry page is skipped.

NOTE: The number must be in E.164 format, excluding the plus ("+") character.
4477781234567optional
returnurlstringURL to which user is redirected after payment. In case of GET requests, URL must be URLencoded.
Additional query parameters defined by the client and forwarded through returnurl parameter will be passed back when user is returned, with Centili parameters attached.
http://www.example.comoptional
referencestringA unique identification parameter under your system (pass-through variable).appID1optional
useridstringIdentification of the customer.usrId1983

NOTE: If the value is not set within payment request, this field will contain MSISDN of the particular customer.
optional
redirecttimeoutintegerInterval (in seconds) of delay before redirecting to return URL.
If this parameter is:
omitted, user has to click on the button to continue to the content.
if its value is set to 0, the redirection is done instantly.
5optional
signstringRepresents signed string of all concatenated request parameters sorted alphabetically with Centili issued key by using previously agreed encoding algorithm.

NOTE: Please refer to the signature key generation guide.
1f7a5457f65f745787h7a7e578optional
operatorstringMobile Network Operator code.
In some cases it is possible to skip MSISDN entry step by providing this parameter. Please contact your dedicated Centili person for the availability of this parameter for your particular service.
ES_VODAFONEoptional
countrystringBy supplying this parameter, you can verify how the Centili Payment Page will look in a specific country.
Expected parameter value is an international country code. For more details use official ISO list of country codes.

NOTE: If this parameter is omitted, the Payment Page will use Country GeoIP recognition.
GBoptional
languagestringBy supplying this parameter, you can force the localization of Payment Page.
Expected parameter value is an international country code. For more details use official ISO list of country codes.
FRoptional
themestringBy supplying this parameter, you set the change of Payment Page appearance.
Omitting this parameter results in default theme.
blackoptional

Example

Here is an example of properly set initiation URL:

http://api.centili.com/payment/widget?apikey=971014d1755c5a07de61e6a8751655cb&country=gb&price=1.5&returnurl=http://www.example.com&reference=ExampleDemo&theme=black

The example sets the following:

  • forces country to GB
  • sets price to 1.5 GBP, which skips price selection step
  • sets return URL and reference
  • sets theme to black
316

Example Payment Page with black theme applied

Next step...