SHARE
TWEET

Untitled

a guest Jun 18th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div id="order3">
  2.                 <h1 class="page-title">##cart_title##:</h1>
  3.                 <div class="EFBlock rounded-small MrgnT">
  4.                 <form action="/##lang##/cart_lighttv_login" method="post" name="orderF">
  5.                     <table class="fixed width100p middle PdngBase">
  6.                         <tr class="title cufon">
  7.                             <th style="width:60px;border-left:1px;">##cart_amount##</th>
  8.                             <th style="text-align:left;"><span class="green">##cart_product##</span></th>
  9.                             <th style="width:100px;">##cart_price##</th>
  10.                             <th style="width:120px;border-right:0px;">##cart_sum##</th>
  11.                         </tr>
  12.                         ##cart_content##       
  13.                     <div id="error" class="error5">##cart_please_select_payment_type##</div>                   
  14.                     <div class="submit-line relative floats">
  15.                         <a href="/##lang##/##cart_order_type##" class="button green-button-prev100" style="float:left;text-decoration:none;"><span class="cufon">##order1_back##</span></a>
  16.                         <a onclick="checkCartContent();" class="button green-button-next100" style="text-decoration:none;"><span class="cufon">##order1_next##</span></a>
  17.                     </div>
  18.                     <input type="hidden" name="checkOrdCode" value="##cart_check_code##"/>
  19.                 </form>
  20.                 </div>
  21.             </div>
  22. <script>
  23. $(document).ready(function() {
  24.     {
  25.     var body = {
  26.       "stamp": "29858472953",
  27.       "reference": "9187445",
  28.       "amount": 1590,
  29.       "currency": "EUR",
  30.       "language": "FI",
  31.       "items": [
  32.         {
  33.           "unitPrice": 1590,
  34.           "units": 1,
  35.           "vatPercentage": 24,
  36.           "productCode": "#927502759",
  37.           "deliveryDate": "2018-03-07",
  38.           "description": "Cat ladder",
  39.           "category": "Pet supplies",
  40.           "merchant": "375917",
  41.           "stamp": "29858472952",
  42.           "reference": "9187445"
  43.         }
  44.       ],
  45.       "customer": {
  46.         "email": "erja.esimerkki@example.org",
  47.         "firstName": "Erja",
  48.         "lastName": "Esimerkki",
  49.         "phone": "+358501234567",
  50.         "vatId": "FI12345671"
  51.       },
  52.       "deliveryAddress": {
  53.         "streetAddress": "Etel├Ąpuisto 2 C",
  54.         "postalCode": "33200",
  55.         "city": "Tampere",
  56.         "county": "Pirkanmaa",
  57.         "country": "FI"
  58.       },
  59.       "invoicingAddress": {
  60.         "streetAddress": "Gebhardinaukio 1",
  61.         "postalCode": "00510",
  62.         "city": "Helsinki",
  63.         "county": "Uusimaa",
  64.         "country": "FI"
  65.       },
  66.       "redirectUrls": {
  67.         "success": "https://ecom.example.org/success",
  68.         "cancel": "https://ecom.example.org/cancel"
  69.       },
  70.       "callbackUrls": {
  71.         "success": "https://ecom.example.org/success",
  72.         "cancel": "https://ecom.example.org/cancel"
  73.       }
  74.     }
  75. };
  76.     console.log(body);
  77.  
  78.     var url = 'https://api.checkout.fi';
  79.  
  80.  $.ajax({
  81.      url: url,
  82.      // headers: {
  83.      //     'Content-Type':'application/x-www-form-urlencoded'
  84.      // },
  85.      method: 'POST',
  86.      dataType: 'json',
  87.      data: body,
  88.      success: function(data){
  89.        console.log('succes: '+data);
  90.      }
  91.    });
  92.  
  93.  
  94.  
  95. });
  96. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top