Professional Documents
Culture Documents
Gateway Wap en v7
Gateway Wap en v7
v.7
Elaborated by Resonance Tech, R&D Department
Gateway Wap Spain
Page 1
Gateway Wap Spain
1. Revision History
Page 2
Gateway Wap Spain
2. Introduction
The Resonance Tech platform offers the client an API through which they can implement a platform for
payments and subscriptions, and offer premium services charged to the user's mobile line. This API
consists of Wap payment and subscription methods, WiFi subscription, and methods of control and
management of payments and subscriptions.
The methods belonging to the Wap flow and automatic user identification will be available only when the
user browses with their mobile terminal through the operator’s data network.
The WiFi flow, however, allows charges and subscriptions to be made when the user is browsing from a
different device, such as a personal computer or tablet (provided they are not browsing through a SIM
card with 3G enabled).
Finally, the methods of management and control of payments and subscriptions offer a set of queries
and notifications through which the client knows at all times what is happening with each payment or
subscription taking place in their system.
Page 3
Gateway Wap Spain
3. Operator Query
By this method the client can find out which operator the user is browsing with from their terminal, based
on the IP address. If the client obtains an operator supported by the platform as a result of this query,
they can start a Wap payment or subscription flow.
This method is only useful if the user is browsing through their data connection and using the operator
data APN. If they are browsing with their terminal’s WiFi connection, the call will fail and the client will
have to start the WiFi payment/subscription flow.
The URL of the operator query method is http://passwap.com/gw/lookup. A GET call with the following
parameters must be made:
Example call:
http://passwap.com/gw/lookup?
api_key=11310430628cec77317f1aec7a88a54b&
ip=88.214.165.117
Response OK:
Page 4
Gateway Wap Spain
<lookup>
<status>OK</status>
<operator>vodafone</operator>
</lookup>
Unresolved response:
<lookup>
<status>ERROR</status>
<code>UNKNOWN_OPERATOR</code>
<reason>Unknown operator</reason>
</lookup>
Page 5
Gateway Wap Spain
4. User Identification
By this method the client can check the MSISDN of a user when they are browsing from their mobile
device and using the operator data APN. Once the user has been identified, the client can check the
status of the subscription in order to offer the user either the contracted services or the subscription.
2. To identify the user, the client must request a user identification URL. The URL of the method for
obtaining an identification URL is http://passwap.com/gw/identifyUrl. A GET call with the following
parameters must be made:
Page 6
Gateway Wap Spain
return_url: Return URL to which the user will be redirected once identification has been processed.
This URL is provided by the client. This parameter must be url_encoded.
Example of the call the client must make to get the identification URL:
http://passwap.com/gw/identifyUrl?
api_key=11310430628cec77317f1aec7a88a54b&
return_url=http%3A%2F%2Fcliente.com%2Fidentify_back
<identifyUrl>
<status>OK</status>
<url><![CDATA[http://passwap.com/gw/identify/bf02b27c-ea76-450d-8673-8fa2d3598650?qs=14
289136801759]]></url>
</identifyUrl>
Page 7
Gateway Wap Spain
<identifyUrl>
<status>ERROR</status>
<code>VALIDATION_ERROR</code>
</identifyUrl>
4. The client has obtained the identification URL and redirects the user to that URL.
6. Once the user has been identified, they are redirected to the client’s return URL, indicated by the client
in step 2 (return_url). This return URL has been enriched by adding the following parameters:
operator: Indicates the user operator. Possible values: “movistar”, “vodafone”, “yoigo”, “orange”. This
parameter is added only if it has been possible to determine the operator.
token: String hash with which the client can obtain the user's MSISDN.
Page 8
Gateway Wap Spain
Example of URL to which the user is sent once their identification has been attempted, but the process
has not concluded satisfactorily:
http://cliente.com/identify_back?
status=ERROR&
error_type=UNKNOWN_OPERATOR
Example of URL to which the user is sent once their identification has been attempted satisfactorily:
http://cliente.com/identify_back?
status=OK&
operator=movistar&
token=C04628C17DC94DC09E1A3AC642CE9920
7. On the page to which they have been sent after identification, the user asks the client for the
parameters added by the Resonance Tech platform.
8. With the token obtained, the client must make a call to the checkIdentifyUser method to complete the
identification process and obtain the user MSISDN.
Page 9
Gateway Wap Spain
Example call:
http://passwap.com/gw/checkIdentifyUser?
api_key=11310430628cec77317f1aec7a88a54b&
token=C04628C17DC94DC09E1A3AC642CE9920
9. Response to the call. The response to the call is an XML with the following format:
<checkIdentifyUser>
<status>OK</status>
<operator>yoigo</operator>
<msisdn>nnnnnnnnn</msisdn>
</checkIdentifyUser>
Page 10
Gateway Wap Spain
In which:
operator: Indicates the user operator. Possible values: “movistar”, “vodafone”, “yoigo”, “orange”. Only
if it has been possible to identify the operator.
msisdn: The user’s MSISDN, without international code. Sometimes it is possible that instead of the
MSISDN an alphanumeric string will be returned. This is a unique alphanumeric identifier. If this
identifier is returned, it can also be used in the subscription status query method.
<checkIdentifyUser>
<status>ERROR</status>
<code>INVALID_TOKEN</code>
</checkIdentifyUser>
4.1. Movistar
This operator modified the way of identify users. This operator will only provide the MSISDN if the end
user have a subscription active on the service that is trying to acces. If the end user dont have any
subscription active passwap will return the following error:
Page 11
Gateway Wap Spain
status=ERROR&error_type=IDENTIFICATION_ERROR
Page 12
Gateway Wap Spain
The client can check the status of a subscription or whether a user has an active subscription. They can
make the query based on the unique subscription identifier (sid) which is provided when a subscription is
made, or based on the user MSISDN. In the latter case, the status of the last subscription made in that
service is returned.
http://passwap.com/gw/checkSubscription
api_key=11310430628cec77317f1aec7a88a54b&
sid=C04628C17DC94DC09E1A3AC642CE9920
Page 13
Gateway Wap Spain
http://passwap.com/gw/checkSubscription?
api_key=11310430628cec77317f1aec7a88a54b&
msisdn=nnnnnnnnn
<checkSubscription>
<status>ERROR</status>
<code>SUBSCRIPTION_NOT_FOUND</code>
</checkSubscription>
In which:
Page 14
Gateway Wap Spain
<checkSubscription>
<status>OK</status>
<subscription>
<sid>557CC7DDC4534877B6D9F97C7D68AF62</sid>
<status>OK</status>
<msisdn>nnnnnnnnn</msisdn>
<metadata><![CDATA[23ce185134]]></metadata>
<startDate>2013-09-05 13:04:32</startDate>
<endDate></endDate>
<lastBillingStatus>OK</lastBillingStatus>
<lastBillingDate>2013-09-05 13:04:34</lastBillingDate>
</subscription>
Page 15
Gateway Wap Spain
</checkSubscription>
In which:
status: Subscription status. Possible values: “OK” (current subscription), “DELETED” (cancelled
subscription)
metadata: Client’s own data, provided by the client when creating the subscription
The above example is for a current subscription whose last payment was processed correctly.
<checkSubscription>
Page 16
Gateway Wap Spain
<status>OK</status>
<subscription>
<sid>BC1E0B4B31F54800994D334D889D11A2</sid>
<status>OK</status>
<msisdn>667790520</msisdn>
<metadata><![CDATA[5c04925674]]></metadata>
<startDate>2013-09-05 13:10:22</startDate>
<endDate></endDate>
<lastBillingStatus>ERROR</lastBillingStatus>
<lastBillingDate>2013-09-05 13:10:58</lastBillingDate>
</subscription>
</checkSubscription>
<checkSubscription>
<status>OK</status>
<subscription>
Page 17
Gateway Wap Spain
<sid>C96112F8723545F6B534D846359C13A5</sid>
<status>DELETED</status>
<msisdn>722159111</msisdn>
<metadata><![CDATA[e4a6222cdb]]></metadata>
<startDate>2013-09-05 10:15:56</startDate>
<endDate>2013-09-05 10:19:33</endDate>
<lastBillingStatus>ERROR</lastBillingStatus>
<lastBillingDate>2013-09-05 10:19:33</lastBillingDate>
</subscription>
</checkSubscription>
Page 18
Gateway Wap Spain
The URL subscription method enables the client to obtain a URL to which they can redirect the user to
make a subscription attempt. Subscription by this method is only available when the user is browsing
from their mobile device and using the operator data APN. When this occurs, an attempt will be made to
subscribe the user, who will then be sent to the client’s return URL.
1. The user accesses the client’s service home page. They accept the terms and want to subscribe.
Page 19
Gateway Wap Spain
return_url: Client return URL, to which the user will be redirected once they have completed the
subscription process. It must be url_encoded.
metadata: Free field for client use. This field can be used, for example, for storing data relating to the
user, subscription, etc. Maximum length: 512 characters.
card_id: Operator carrier card customization identifier. With this ID the client can select which carrier
card they want to show if the operator so requires.
http://passwap.com/gw/subscribeUrl?
api_key=11310430628cec77317f1aec7a88a54b&
return_url=http%3A%2F%2Fcliente.com%2Fsubscribe_back&
operator=vodafone&
metadata=dd45850574&
card_id=modelo1
The answer is an XML with the URL to which the client must send the user. The XML will have the
following structure:
Page 20
Gateway Wap Spain
<subscribeUrl>
<status>OK</status>
<url><![CDATA[http://passwap.com/gw/subscribe?request_id=267b0ca3-69f6-4976-8168-1f09f0
3ba205&api_key=33083c57ee6cec83c3bf9dcf77bed37a&tool=pagosvodafone]]></url>
</subscribeUrl>
In which:
status: Status of the subscription button request. Possible values: “OK”, “ERROR”
url: Contains the URL to which the client must send the user.
<subscribeUrl>
<status>ERROR</status>
<code>UNKNOWN_SERVICE</code>
<reason>Unknown service</reason>
</subscribeUrl>
Page 21
Gateway Wap Spain
6. The user accepts the operator’s confirmation page (if any) and is redirected to the client return URL,
indicated by the client in step 2 (return_url).
After attempting the subscription of the user, the latter is redirected to the client return URL, to which the
following parameters have been added:
If the subscription has been successfully completed, the platform proceeds to make the first payment for
the first cycle of the subscription.
http://cliente.com/subscribe_back?
status=OK&
Page 22
Gateway Wap Spain
sid=C04628C17DC94DC09E1A3AC642CE9920
http://cliente.com/subscribe_back?
status=ERROR&
error_type=ALREADY_SUBSCRIBED
7. The user requests the client return URL page, with the parameters added by the Resonance Tech
platform. At this time, the client may want to make a call to the subscription status query method to
validate the integrity of data received and check the status of down payment if any.
Page 23
Gateway Wap Spain
7. WIFI Subscription
The WiFi subscription method allows users to subscribe via Web browsing. Depending on the service
offered and the user operator, subscription is completed by a confirmation flow with a PIN code, by a
flow of acceptance of a carrier card of the operator, or by a redirect plus pin confirmation. When to use
one flow type or another will be indicated in the response to the WiFi subscription method call, which is
common to all flows.
The subscription process for the flow based on PIN confirmation is described below:
Page 24
Gateway Wap Spain
return_url: Client return URL. In the PIN confirmation process this parameter has no effect. However
if you do not know in advance which method will be used, it is mandatory to add a return URL.
metadata: Free field for client use. This field can be used, for example, for storing data relating to the
user, subscription, etc. Maximum length: 512 characters.
card_id: Operator carrier card customization identifier. With this ID the client can select which carrier
card they want to show if the operator so requires.
http://passwap.com/gw/webSubscribe?api_key=dbdcd7e60c919512f18f58d8eba531c1&operator=orang
e&msisdn=667790520&return_url=http%3A%2F%2Fcliente.com%2Fsubscribe_back&
metadata=dd45850574&card_id=modelo1
The response is an xml indicating which subscription flow to follow and providing additional information.
For PIN confirmation, the additional information is a URL. An SMS will be sent to the user with a PIN
code. The user must enter this PIN in the client website, and the client must confirm the validity of the
Page 25
Gateway Wap Spain
PIN against the URL returned in the call to the webSubscribe API.
The xml of the response to the call will have the following structure:
<webSubscribe>
<status>OK</status>
<url><![CDATA[http://passwap.com/gw/webSubscribeCheckPin/orange/33083c57ee6cec83c3bf
9dcf77bed37a/c7034b4a-c8ce-4aee-a152-0ec76a08e0be]]></url>
<method>CHECKPIN</method>
<operator>orange</operator>
</webSubscribe>
In which:
method: Contains the method that the client must follow to complete the subscription. In this case
"CHECKPIN"
url: URL against which the client has to check the PIN received by the user by adding the parameter
“pin” to it.
Page 26
Gateway Wap Spain
<webSubscribe>
<status>ERROR</status>
<code>VALIDATION_ERROR</code>
<reason>Invalid msisdn</reason>
</webSubscribe>
4. In the PIN confirmation method, the client serves the user an acceptance page where they must enter
the PIN received in their terminal.
7. The client makes a call to the URL returned in step 3 with a single parameter: the PIN that the user
has entered. Example call to this URL:
http://passwap.com/gw/webSubscribeCheckPin/orange/33083c57ee6cec83c3bf9dcf77bed37a/c7034
Page 27
Gateway Wap Spain
b4a-c8ce-4aee-a152-0ec76a08e0be?pin=xxxx
At this time, if the PIN is correct, an attempt is made to process the subscription.
8. Response to the call. The result of the operation will be returned in the call itself in an XML with the
following fields:
<webSubscribeCheckPin>
<status>OK</status>
<sid>D34905D1FCB246E18A7426550B2CEA50</sid>
</webSubscribeCheckPin>
At this point the client may choose to make a call to the subscription status query API for more
information.
Page 28
Gateway Wap Spain
<webSubscribeCheckPin>
<status>ERROR</status>
<code>WRONG_PIN</code>
</webSubscribeCheckPin>
9. The client serves the user the welcome page or error information page as appropriate.
Page 29
Gateway Wap Spain
The subscription process for flow based on acceptance of the operator carrier card is described below:
return_url: Client return URL, to which the user will be redirected once they have completed the
subscription process. It must be url_encoded.
metadata: Free field for client use. This field can be used, for example, for storing data relating to the
user, subscription, etc. Maximum length: 512 characters.
card_id: Operator carrier card customization identifier. With this ID the client can select which carrier
Page 30
Gateway Wap Spain
http://passwap.com/gw/webSubscribe?api_key=dbdcd7e60c919512f18f58d8eba531c1&operator=movist
ar&msisdn=667790520&
return_url=http%3A%2F%2Fcliente.com%2Fsubscribe_back&metadata=dd45850574&card_id=modelo1
The response is an XML indicating which subscription flow to follow and a URL. For the flow with
authentication by operator carrier card, a URL will be returned, where the client should redirect the user.
In this case, the XML will have the following structure:
<webSubscribe>
<status>OK</status>
<url><![CDATA[https://pagos.movistar.es/pegui/purchase.action?callback_url=http%3A%2F%
2Fpasswap.com%2Fgw%2Fcashlog%2Fsubscribe_ok&error_callback_url=http%3A%2F%2Fpa
sswap.com%2Fgw%2Fcashlog%2Fsubscribe_ko&price=0.12&name_merchant=Suscripci%C3
%B3n&sub_frequency=W&sub_start_date=2014-09-05&request_id=noqbuoQccUzKkvJmKiLU
BA%3D%3D¤cy=EUR&subscription=Y&merchant_website_url=&country=es&user_id=
%2B34638137441&user_id_type=MSISDN&telco_code=movistar]]></url>
<method>REDIRECT</method>
Page 31
Gateway Wap Spain
<operator>movistar</operator>
</webSubscribe>
In which:
method: Contains the method that the client must follow to complete the subscription. In this case
"REDIRECT"
url: URL to which the client should redirect the user to complete the authorization.
<webSubscribe>
<status>ERROR</status>
<code>VALIDATION_ERROR</code>
<reason>Invalid msisdn</reason>
</webSubscribe>
Page 32
Gateway Wap Spain
4. In the method of confirmation by operator carrier card, the client should redirect the user to the URL
returned, which corresponds to the operator carrier card, where the user must follow the instructions to
complete the subscription.
5. The user requests the operator carrier card and accepts the subscription.
6. The user is redirected to the client return URL, indicated by the client in step 2 (return_url).
After attempting the subscription of the user, the latter is redirected to the client return URL, to which the
following parameters have been added:
If the subscription has been successfully completed, the platform proceeds to make the first payment for
the first cycle of the subscription.
http://cliente.com/subscribe_back?
status=OK&
Page 33
Gateway Wap Spain
sid=C04628C17DC94DC09E1A3AC642CE9920
http://cliente.com/subscribe_back?
status=ERROR&
error_type=ALREADY_SUBSCRIBED
7. The user requests the client return URL page, with the parameters added by the Resonance Tech
platform. At this time, the client may want to make a call to the subscription status query method to
validate the integrity of the data received and check the status of down payment.
Page 34
Gateway Wap Spain
8. Cancellation Process
Cancellation is deferred. At the time the API is called, the cancellation sms is sent and the cancellation is
processed in the operator, but the subscription status query API still responds that the subscription is
active until the period of the last payment ends.
Example request:
http://passwap.com/gw/cancelSubscription?
api_key=11310430628cec77317f1aec7a88a54b&
sid=C04628C17DC94DC09E1A3AC642CE9920
The response is an XML with the status of the request. Example response to a correctly processed
cancellation request:
Page 35
Gateway Wap Spain
<cancelSubscription>
<status>OK</status>
</cancelSubscription>
<cancelSubscription>
<status>ERROR</status>
<code>ALREADY_UNSUBSCRIBED</code>
<reason>Already unsubscribed</reason>
</cancelSubscription>
In which:
Page 36
Gateway Wap Spain
The URL single payment method allows the client to get a URL to which they can redirect the user to
make a single payment attempt. When this occurs, the user will be sent to the client return URL.
Page 37
Gateway Wap Spain
return_url: Client return URL, to which the user will be redirected once they complete the payment
process. It must be url_encoded.
metadata: Free field for client use. Este dato puede usarse por ejemplo para propagar datos relativos
al usuario, al pago, etc. Maximum length: 512 characters.
card_id: Operator carrier card customization identifier. With this ID the client can select which carrier
card they want to show if the operator so requires.
http://passwap.com/gw/payUrl?
api_key=33083c57ee6cec83c3bf9dcf77bed37a&
return_url=http%3A%2F%2Fcliente.com%2Fpay_back&
operator=vodafone&
metadata=dd45850574&
card_id=modelo2
Page 38
Gateway Wap Spain
The response is an XML with the URL which the client must include on their page. The XML will have the
following structure:
<payUrl>
<status>OK</status>
<url><![CDATA[http://passwap.com/gw/pay?request_id=b0dbc56e-b0d1-4813-a694-48b107710
97&api_key=33083c57ee6cec83c3bf9dcf77bed37a&tool=pagosvodafone]]></url>
</payUrl>
In which:
status: Status of the payment URL request. Possible values: “OK”, “ERROR”
url: Contains the URL which the client must include on their page before serving it to the user.
<payUrl>
<status>ERROR</status>
Page 39
Gateway Wap Spain
<code>UNKNOWN_SERVICE</code>
<reason>Unknown service</reason>
</payUrl>
4. The client serves the user an acceptance page containing the terms of the payment service. This page
will have the URL returned in point 3 embedded in it.
5. The user accepts the page and clicks on the payment button.
6. The user accepts the operator’s confirmation page (if any) and is redirected to the client return URL,
indicated by the client in step 2 (return_url).
After attempting payment, the user is redirected to the client return URL, to which the following
parameters have been added:
http://cliente.com/pay_back?
Page 40
Gateway Wap Spain
status=OK&
pid=C04628C17DC94DC09E1A3AC642CE9920
http://cliente.com/pay_back?
status=ERROR&
error_type=BLACKLIST
7. The user requests the client return URL page, with the parameters added by the Resonance Tech
platform. At this time, the client may want to make a call to the single payment query method to validate
the integrity of the data received.
Page 41
Gateway Wap Spain
The WiFi single payment method allows users perform a single purchase while surfing via Web
browsing. Depending on the service offered and the user operator, the single payment is completed by a
confirmation flow with a PIN code or by a REDIRECT confirmation flow by the acceptance of a carrier
card. When to use one flow type or the other will be indicated in the response of the WiFi single payment
method call, which is common to both flows.
return_url: Client return URL. In the PIN confirmation process this parameter has no effect. However if
you do not know in advance which method will be used, it is mandatory to add a return URL.
metadata: Optional free field for client use. This field can be used, for example, for storing data relating
to the user, the single purchase, etc. Maximum length: 512 characters.
card_id: Operator carrier card customization identifier. With this ID the client can select which carrier
card they want to show if the operator so requires.
The WiFi single payment method by url, allows client to obtain a url to which redirect user to attempt a
single payment. When the single purchase is accomplished, the user will be sent to the client return url
set in the call.
Page 42
Gateway Wap Spain
pin-CHECKPIN
2. The client requests a payment URL through the WiFi single payment API method webPay.
return_url: Client return URL. In the PIN confirmation process this parameter has no effect. However
if you do not know in advance which method will be used, it is mandatory to add a return URL.
metadata: Optional free field for client use. This field can be used, for example, for storing data
relating to the user, the single purchase, etc. Maximum length: 512 characters.
Page 43
Gateway Wap Spain
card_id: Operator carrier card customization identifier. With this ID the client can select which carrier
card they want to show if the operator so requires.
http://passwap.com
/gw/webPay?api_key=dd67bebfdb52ffbed8b8f1fbb7396055&return_url=http://www.google.com&msis
dn=638137441
The response is an xml indicating which subscription flow to follow and providing additional
information. For PIN confirmation, the additional information is a URL. An SMS will be sent to the user
with a PIN code. The user must enter this PIN in the client website, and the client must confirm the
validity of the PIN against the URL returned in the call to the webSubscribe API.
The xml of the response to the call will have the following structure:
<webPay>
<status>OK</status>
<url>http://passwap.com/gw/webPayCheckPin/movistar/dd67bebfdb52ffbed8b8f1fbb7396055/03b90f
98-020c-a389-29f1-00005d4026aa</url>
<method>CHECKPIN</method>
<operator>movistar</operator>
</webPay>
In which:
status: Status of the single payment request. Possible values: “OK”, “ERROR”.
url: URL against which the client has to check the PIN received by the user by adding the parameter
“pin” to it.
Page 44
Gateway Wap Spain
method: Contains the method that the client must follow to complete the single payment. In this case
"CHECKPIN".
<webPay>
<status>ERROR</status>
<code>UNKNOWN_OPERATOR</code>
<reason>Unknown operator</reason>
</webPay>
4. In the PIN confirmation method, the client serves the user an acceptance page where they must
enter the PIN received in their terminal. .
7. The client makes a call to the URL returned in step 3 with a single parameter: the PIN that the user
has entered. Example call to this URL:
http://passwap.com/gw/webPayCheckPin/movistar/dd67bebfdb52ffbed8b8f1fbb7396055/03b90f98-02
0c-a389-29f1-00005d4026aa?pin=xxxx
At this time, if the PIN is correct, an attempt is made to process the payment.
8. Response to the call. The result of the operation will be returned in the call itself in an XML with the
following field:
Page 45
Gateway Wap Spain
<webPayCheckPin>
<status>OK</status>
<pid>01916e68010ca545699800005d402782</pid>
</webPayCheckPin>
At this point, the client may choose to make a call to the payment status query API for more
information.
<webPayCheckPin>
<status>ERROR</status>
<code>UNKNOWN_SERVICE</code>
<reason>Unknown service</reason>
</webPayCheckPin>
9. The client serves the user the welcome page or error information page as appropriate.
The flowchart for WiFi single payment by acceptance of operator payment card with redirect is as
follows:
Page 46
Gateway Wap Spain
The WiFi single payment process for the flow based on acceptance of the operator payment card is
described below:
return_url: Client return URL, to which the user will be redirected once they have completed the
single payment process. It must be url_encoded.
metadata: Optional free field for client use. This field can be used, for example, for storing data
relating to the user, the single purchase, etc. Maximum length: 512 characters.
card_id: Operator carrier card customization identifier. With this ID the client can select which
carrier card they want to show if the operator so requires.
http://passwap.com/gw/webPay?api_key=a1ec98867d86b09d7c7aea5ba67d2cdc&return_url=http://www
Page 47
Gateway Wap Spain
.google.de&msisdn=635646879
The response is an XML indicating which single payment flow to follow and a URL. For the flow with
acceptance of operator carrier card, a URL will be returned, where the client should redirect the user. In
this case, the XML will have the following structure:
<webPay>
<status>OK</status>
<url>https://enabler.dvbs.com/session/cardm/web/627ebfc6-1990-4416-82bc-506c954708e5/00cfa954-
e819-ab8c-eac1-00005d405c6b</url>
<method>REDIRECT</method>
<operator>orange</operator>
</webPay>
In which:
status: Status of the single payment request. Possible values: “OK” or “ERROR”.
method: Contains the method that the client must follow to complete the single payment. In this
case "REDIRECT".
url: URL to which the client should redirect the user to complete the single payment.
<webPay>
<status>ERROR</status>
<code>UNKNOWN_SERVICE</code>
<reason>Unknown service</reason>
</webPay>
4. In the method of confirmation by operator carrier card, the client should redirect the user to the URL
returned, which corresponds to the operator carrier card, where the user must follow the instructions to
complete the single payment.
5. The user requests the operator carrier card and accepts the single payment.
Page 48
Gateway Wap Spain
6. The user is redirected to the client return URL, indicated by the client in step 2 (return_url).
After attempting the single payment, the user is redirected to the client return URL, to which the following
parameters have been added:
7. The user requests the client return URL page, with the parameters added by the Resonance Tech
platform. At this time, the client may want to make a call to the single payment status query method to
validate the integrity of the data received and check the status of the payment.
Page 49
Gateway Wap Spain
The client can check the status of a single payment. The query should be made based on the unique
payment identifier (pid) provided when a single payment is made. In case of a successful request,
additional payment information will be returned.
Example call:
http://passwap.com/gw/checkPayment?
api_key=33083c57ee6cec83c3bf9dcf77bed37a&
pid=c99122e348a641deaa5b9f0d106b65da
<checkPayment>
Page 50
Gateway Wap Spain
<status>OK</status>
<payment>
<pid>c99122e348a641deaa5b9f0d106b65da</pid>
<msisdn>667790520</msisdn>
<price>0.01</price>
<date>2014-09-05 11:04:59</date>
</payment>
</checkPayment>
In which:
Page 51
Gateway Wap Spain
<payment>
<status>ERROR</status>
<code>UNKNOWN_SERVICE</code>
<reason>Unknown service</reason>
</payment>
In which:
Page 52
Gateway Wap Spain
12. Refund
The Refund method allows client to pay back a subscription renewal or a single payment purchase to the
end user. Note that in order to refund a single payment purchase, the client should provide two
parameters that identify the single purchase but in case to refund a subscription renewal payment the
client should provide three parameters to identify a particular payment transaction.
http://passwap.com/gw/refund?
api_key=6183aa6582a2aaa8ee6be1eebf579652&
Page 53
Gateway Wap Spain
pid=0570632c-0119-ac89-5054-00005aa69f66
http://passwap.com/gw/refund?
api_key=6183aa6582a2aaa8ee6be1eebf579652&
pid=0570632c-0119-ac89-5054-00005aa69f66
sid=0502a56c010ca490797a00005aa69f65
<refund>
<status>OK</status>
</refund>
<refund>
<status>ERROR</status>
<code>PAYMENT_NOT_FOUND</code>
</refund>
Page 54
Gateway Wap Spain
In case of error due to the payment has already been refunded, the returned XML is as follows:
<refund>
<status>ERROR</status>
<code>VALIDATION_ERROR</code>
</refund>
Page 55
Gateway Wap Spain
13. Notifications
The Resonance Tech platform has a notification system whereby the client is informed of events relating
to subscriptions and attempted subscriptions. When registering the service, the client must provide a
URL on which Resonance Tech will report all the events that take place. Notifications are via GET to the
notification URL provided by the client, to which the relevant parameters are added.
BILLING_ERROR: There has been an attempt to charge an active subscription, but it has failed.
UNSUBSCRIPTION_REQUEST: The subscription cancellation has been requested but it will not take
effect until the renewal period is expired.
Not all parameters are available in all types of notifications. The list of parameters is as follows:
sid: Unique subscription identifier. (All except SUBSCRIPTION_ERROR and BILLING_REFUND for
single payment purchase)
Page 56
Gateway Wap Spain
metadata: Client’s own data, provided by the client when creating the subscription. (All)
Type Description
API_CANCEL Content provider requested the subscription
Termination
OPERATOR_ERROR User terminated the subscription calling
Operator CC
LIFECYCLE Subscription terminated by platform due lifecycle
BLACKLIST Subscription terminated because user is on
blacklist
NOT_ACTIVE The subscription is not active on operator
database
Page 57
Gateway Wap Spain
Example notifications:
Subscription OK Vodafone:
http://cliente.com/call_back?
sid=19CED68DE29943938497E9DC6942D3BC&
metadata=2421fcb126&
msisdn=nnnnnnnnn&
price=0.10&
date=2013-09-10+13%3A57%3A56&
operator=vodafone&
api_key=11310430628cec77317f1aec7a88a54b&
type=SUBSCRIPTION_OK
http://cliente.com/call_back?
metadata=a3c65c2974&
date=2013-09-10+13%3A22%3A16&
operator=vodafone&
api_key=11310430628cec77317f1aec7a88a54b&
Page 58
Gateway Wap Spain
error_code=E-CUSTCANC&
error_description=Compra+cancelada+por+el+usuario&
type=SUBSCRIPTION_ERROR&
error_type=USER_CANCEL
http://cliente.com/call_back?
metadata=58ae749f25&
date=2013-09-10+17%3A54%3A41&
operator=yoigo&
api_key=dbdcd7e60c919512f18f58d8eba531c1&
error_code=0&
error_description=Success%7CAborted+by+consumer&
fail_code=0&
type=SUBSCRIPTION_ERROR&
error_type=USER_CANCEL
http://cliente.com/call_back?
Page 59
Gateway Wap Spain
metadata=daca41214b&
date=2013-09-12+11%3A09%3A59&
operator=movistar&
api_key=8db51b5c7832d74a77216be96ec86c39&
error_code=ERR_0127&
error_description=Operation+aborted+by+user.+Redirect+now&
type=SUBSCRIPTION_ERROR&
error_type=USER_CANCEL
request_id=03fde0c8-030c-a480-5fe2-00005b28e240&
result=ERROR&
error_code=CANCELLED_BY_USER&
message=Subscription+cancelled+by+user&
session_id=0014350c-0219-aba3-6233-00005b28e242
http://cliente.com/call_back?
Page 60
Gateway Wap Spain
metadata=362e80d4df&
date=2013-09-10+15%3A58%3A51&
operator=vodafone&
api_key=11310430628cec77317f1aec7a88a54b&
type=SUBSCRIPTION_ERROR&
error_type=ALREADY_SUBSCRIBED
http://cliente.com/call_back?
metadata=6aca97005c&
date=2013-09-10+16%3A30%3A02&
operator=vodafone&
api_key=dbdcd7e60c919512f18f58d8eba531c1&
error_code=E-MAX-USER-TRANS-EXC&
error_description=Se+ha+superado+el+maximo+de+suscripciones+activas+para+el+cliente&
type=SUBSCRIPTION_ERROR&
error_type=OPERATOR_ERROR
Billing OK in Vodafone:
Page 61
Gateway Wap Spain
http://cliente.com/call_back?
sid=929A902735C744039B1234A2F25BC2D4&
metadata=3a066bda8c&
msisdn=nnnnnnnnn&
price=0.10&
date=2013-09-10+15%3A56%3A00&
operator=vodafone&
api_key=11310430628cec77317f1aec7a88a54b&
type=BILLING_OK
Billing KO vodafone
http://cliente.com/call_back?
sid=929A902735C744039B1234A2F25BC2D4&
metadata=3a066bda8c&
msisdn=nnnnnnnnn&
price=0.10&
date=2013-09-10+16%3A01%3A54&
operator=vodafone&
api_key=11310430628cec77317f1aec7a88a54b&
Page 62
Gateway Wap Spain
error_code=E-MAN-PER-CAPT&
error_description=La+suscripcion+ya+ha+sido+cobrada+una+vez+para+el+periodo+en+curso&
type=BILLING_ERROR&
error_type=GENERIC_ERROR
Billing KO yoigo
http://cliente.com/call_back?
sid=3DF6FE959E7046A281639F0DFFCE9D46&
metadata=2e65f2f2fd&
msisdn=nnnnnnnnn&
price=0.01&
date=2013-09-10+17%3A58%3A42&
operator=yoigo&
api_key=dbdcd7e60c919512f18f58d8eba531c1&
error_code=10&
error_description=The+service+provider+charging+frequency+is+exceeded&
fail_code=0&
type=BILLING_ERROR&
error_type=OPERATOR_ERROR
Page 63
Gateway Wap Spain
http://serviciocliente.com/orange/notifications?
type=UNSUBSCRIPTION_REQUEST&
error_type=API_CANCEL&
operator=orange&
date=2018-02-26+10%3A08%3A08&
api_key=1431d25a1ba8f576b0d24423d0140d1b&
sid=059cf7ac010ca5c83e9000005a925d4a&
msisdn=nnnnnnnnn&
metadata=34651592705&
price=2.06&
error_description=Unsubscription+via+API en pycola.jmeservicios.com:6374;PASSWAP_notificaciones
_h_<servicio>.com
http://cliente.com/call_back?
sid=F010DBD4D8E54E20BDEAC54528FF5F7D&
metadata=08419be897&
msisdn=nnnnnnnnn&
Page 64
Gateway Wap Spain
price=0.10&
date=2013-09-10+15%3A52%3A48&
operator=vodafone&
api_key=11310430628cec77317f1aec7a88a54b&
type=UNSUBSCRIPTION&
error_type=API_CANCEL
http://cliente.com/call_back?
sid=929A902735C744039B1234A2F25BC2D4&
metadata=3a066bda8c&
msisdn=nnnnnnnnn&
price=0.10&
date=2013-09-10+16%3A09%3A30&
operator=vodafone&
api_key=11310430628cec77317f1aec7a88a54b&
error_code=E-CUSTFRAUD&
error_description=Error+procedente+de+la+plataforma+de+cobro+de+VF+España+numero+25008,+in
tento+cobro+cliente+en+Black+List&
type=UNSUBSCRIPTION&
Page 65
Gateway Wap Spain
error_type=OPERATOR_ERROR
http://cliente.com/call_back?
sid=3DF6FE959E7046A281639F0DFFCE9D46&
metadata=2e65f2f2fd&
msisdn=nnnnnnnnn&
price=0.01&
date=2013-09-10+17%3A58%3A43&
operator=yoigo&
api_key=dbdcd7e60c919512f18f58d8eba531c1&
error_code=200&
error_description=The+subscriber+has+blocked+this+service+%28from+operator%29&
fail_code=1007&
type=UNSUBSCRIPTION&
error_type=BLACKLIST
http://cliente.com/call_back?
Page 66
Gateway Wap Spain
sid=114AC8C7D55AE54A15A3ADA66BC55C70&
metadata=24896ee4c6&
msisdn=638137441&
price=2.47&
date=2013-09-12+13%3A50%3A07&
operator=movistar&
api_key=8db51b5c7832d74a77216be96ec86c39&
error_code=Unsub_API_Merchant&
error_description=Merchant+request&
type=UNSUBSCRIPTION&
error_type=BLACKLIST
Billing OK orange:
http://fcbarcelonaesp.com/orange/notifications?
type=BILLING_OK&
operator=orange&
date=2018-03-21+15%3A11%3A52&
api_key=2ebee4e988a71e2e0a001af2c971184f&
sid=878E5814C3C649C7B1B7959824F32476&
Page 67
Gateway Wap Spain
msisdn= nnnnnnnnn&
campaign=unknown&
provider= The+service+provider+service+name+Payment+DC&
subsidiary=20022018_carga1&
pid=01446a64010ca57f2fda00005ab26828&
price=2.47
type=BILLING_REFUND&
operator=orange&
date=2018-03-22+10%3A00%3A20&
api_key=19f0c2cbb57008f2a0f0954a28fa6b3c&
sid=031396a8040ca53fccc000005a591d4d&
msisdn=nnnnnnnnn&
metadata=c2VsZW5lOmZiMzNjZmZmcGE&
pid=052fca74020cabbc3f2500005aac3e65&
price=2.47
Page 68
Gateway Wap Spain
REQUEST /gw/cancelSubscription
api_key=dd1a391eb75522832782b3e2e0178945
sid=05d32b10030cabd6366400005cf97c3f
type=UNSUBSCRIPTION_REQUEST&
error_type=API_CANCEL&
operator=orange&
date=2019-06-06+22%3A51%3A29&
api_key=dd1a391eb75522832782b3e2e0178945&
sid=05d32b10030cabd6366400005cf97c3f&
msisdn=695734779&
metadata=2019065cf97c3466ffa40e7c4fa95e%7Cprivate.todo-viral.mobi&
price=2.89&
error_description=Unsubscription+via+API
Page 69
Gateway Wap Spain
2. But note that the UNSUBSCRIPTION notification is received later on when last renewal period has
expired:
type=UNSUBSCRIPTION&
error_type=API_CANCEL&
operator=orange&
date=2019-06-13+22%3A50%3A14&
api_key=dd1a391eb75522832782b3e2e0178945&
sid=05d32b10030cabd6366400005cf97c3f&
msisdn=695734779&
metadata=2019065cf97c3466ffa40e7c4fa95e%7Cprivate.todo-viral.mobi&
price=2.89&
error_description=Unsubscription+via+API
subscribeBack/orange?
request_id=01b2bcf8-030c-a396-00a4-00005d01e60c&
result=ERROR&
Page 70
Gateway Wap Spain
error_code=INVALID_REQUEST&
message=Invalid+request&
session_id=043593c4-8619-ad07-fcfb-00005d01e60d
type=SUBSCRIPTION_ERROR&
error_type=UNKNOWN_ERROR&
operator=orange&
date=2019-06-13+08%3A00%3A04&
api_key=57f5958b46e203132304a094c9d3a301&
metadata=2330557591&
error_code=INVALID_REQUEST&
Page 71
Gateway Wap Spain
LIMIT_REACHED: The maximum limit of active subscriptions in the system has been reached.
Page 72
Gateway Wap Spain
CAPPING_LIMIT_REACHED: The limit for daily amount of subscriptions created for a service has
been reached.
Page 73
Gateway WAP Portugal MEO
resonancetech.com
Juan Ignacio Luca de Tena 1, Planta 3ª - 28027 Madrid.
Tel. 902 01 02 01 Page 27