WebAPI/WebPayment: Difference between revisions

Jump to navigation Jump to search
→‎In-app payment: remove country code per discussion on webapps list
(→‎In-app payment: remove country code per discussion on webapps list)
Line 90: Line 90:
       "price" : [
       "price" : [
       {
       {
        "country": "US",
         "currency": "USD",
         "currency": "USD",
         "amount": 5.50
         "amount": "5.50"
       },  
       },  
       {
       {
        "country": "BR",
         "currency": "BRL",
         "currency": "BRL",
         "amount": 11.07
         "amount": "11.07"
       }],
       }],
       "defaultPrice": "US",
       "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 country.
*** '''price''' (mandatory): List of prices per currency.
**** '''country''': Country code expressed following the recommendations from [http://www.iso.org/iso/country_codes/iso_3166_code_lists/country_names_and_code_elements.htm ISO 3166 ].
**** '''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''': 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 value is expressed following [http://www.iso.org/iso/country_codes/iso_3166_code_lists/country_names_and_code_elements.htm ISO 3166] and must match with one of the countries in the price list.  
*** '''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.
Confirmed users
324

edits

Navigation menu