Easypay Web Service Integration - Extra API
Easypay Web Service Integration - Extra API
Extra APIs
(rev. 4 2011-01-14)
IMPORTANT:
This document is ONLY an annex to the easypay integration.
Please read the easypay Web Service Integration for complete
instructions.
_____________________________________________________________________________________________
This document contains a few web services that we have created for your convenience.
AVAILABLE LANGUAGES
rev. 4 2011-01-14
Page. 2
_____________________________________________________________________________________________
Available Languages
You can access this API to get the currently available languages provided by our credit card payment gateway. It is
useful if you want to show the nearest available language according to the member language on your website.
API: 10AA
Method: GET, POST
Type: PUBLIC (no authentication needed)
Request Data:
type
Default: xml
Data type: enum(json,xml)
No mndatory parameters.
Example XML:
https://www.easypay.pt/_s/api_easypay_10AA.php?type=json
In response to your request, easypay will send you back the following XML string:
<ep_languages>
<language>
<code>PT</code>
<name>Portuguese</name>
</language>
<language>
<code>EN</code>
<name>English</name>
</language>
<language>
<code>ES</code>
<name>Spanish</name>
</language>
</ep_languages>
Example JSON:
https://www.easypay.pt/_s/api_easypay_10AA.php?type=json
In response to your request, easypay will send you back the following JSON string:
{"PT":"Portuguese","EN":"English","ES":"Spanish"}
rev. 4 2011-01-14
Page. 3
_____________________________________________________________________________________________
API: 00BG
Method: GET, POST
Request Data:
ep_cin
ep_user
ep_entity
ep_ref
The payment identifier that you would like to update, delete or insert.
ep_delete
The following parameters need to be sent if you would like to update or create a payment identifier
t_value
o_name
o_description
The description.
o_obs
Extra observations
o_email
Email associated.
o_mobile
t_key
The key that you would like to associate with this payment identifier
Example XML:
https://www.easypay.pt/_s/api_easypay_00BG.php?ep_entity=10611&ep_user=EASYTEST9&ep_cin=8889&ep_r
ef=888902154&t_value=150&t_key=100
rev. 4 2011-01-14
Page. 4
_____________________________________________________________________________________________
In response to your request, easypay will send you back the following XML string:
<getautomb>
<ep_status>ok0</ep_status>
<ep_message>ep_country and ep_entity and ep_user and ep_cin ok and validation by ip;reference
888902154 was updated;</ep_message>
<ep_cin>8889</ep_cin>
<ep_user>EASYTEST4</ep_user>
<ep_entity>10611</ep_entity>
<ep_reference>400000045</ep_reference>
<ep_value>150.00</ep_value>
<ep_key>100</ep_key>
</getautomb>
rev. 4 2011-01-14
Page. 5