/
Available payment methods

Available payment methods

That webservice gives a list of payment methods allowed for the current cart.

It takes in account the shop preferencies and the choice of being delivered at the bookshop or not.


Get available payment methods

Example

https://wsmedia.tlsecure.com/api/json/00000/cart/information/paymentMethod

Request

Parameters

Location

Type

Required

Default

Accepted

 

Parameters

Location

Type

Required

Default

Accepted

 

token

Header

String(26)

v

 

 

 

Response

Success

{ "response": { "success": true "code": 0 "message": "autorized payment methods retrieved" "object": { "paymentMethods": { "paymentMethod": [1] 0: { "id": 2 "name": "Confirmed by shop" "reserved": true } } } } }

Error

{ "response": { "success": false "code": 10 "message": "cart not exist" } }

Codelist

Code

Success

Message

Code

Success

Message

0

v

autorized payment methods retrieved

1

 

domaincode malformed

2

 

connexion error

3

 

token is empty

4

 

no token with that key

5

 

invalid token

9

 

{param} is not {type} {(or undefined)}

10

 

cart not exist

99

 

uncatched exception

Related content