Confirmed users
324
edits
(→In-app payment: remove country code per discussion on webapps list) |
|||
| Line 90: | Line 90: | ||
"price" : [ | "price" : [ | ||
{ | { | ||
"currency": "USD", | "currency": "USD", | ||
"amount": 5.50 | "amount": "5.50" | ||
}, | }, | ||
{ | { | ||
"currency": "BRL", | "currency": "BRL", | ||
"amount": 11.07 | "amount": "11.07" | ||
}], | }], | ||
"defaultPrice": " | "defaultPrice": "USD", | ||
"productData" : "my_product_id=1234&my_session_id=XYZ", | "productData" : "my_product_id=1234&my_session_id=XYZ", | ||
"postbackURL" : "http://developersserver.com/postback", | "postbackURL" : "http://developersserver.com/postback", | ||
| Line 113: | Line 111: | ||
**'''exp''': Expiration. A UTC Unix timestamp of when the JWT should expire. | **'''exp''': Expiration. A UTC Unix timestamp of when the JWT should expire. | ||
**'''request''' (mandatory): Request object. | **'''request''' (mandatory): Request object. | ||
*** '''price''' (mandatory): List of prices per | *** '''price''' (mandatory): List of prices per currency. | ||
**** '''currency''': Currency code expressed following the recommendations from [http://www.xe.com/iso4217.php/ ISO 4217]. | **** '''currency''': Currency code expressed following the recommendations from [http://www.xe.com/iso4217.php/ ISO 4217]. | ||
**** '''amount''': Value withouth taxes of the digital good being sold. | **** '''amount''': Value withouth taxes of the digital good being sold. | ||
*** '''defaultPrice''': | *** '''defaultPrice''': This is the currency code for the default price to be considered as payment price when there is not matching between the customer currency and the currency prices located in the price collection. This must match with one of the currency codes in the price list. | ||
*** '''name''' (mandatory): A short description of the product. | *** '''name''' (mandatory): A short description of the product. | ||
*** '''description''' (mandatory): A long description of the product. | *** '''description''' (mandatory): A long description of the product. | ||