Advertisement
Guest User

payu

a guest
Dec 11th, 2012
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 9.96 KB | None | 0 0
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
  4. <title>Bi Çantam | Abiye Çanta, Gece Çantası, Bayan Çanta, Kadın Çanta</title>
  5. <script src="https://secure.payu.com.tr/openpayu/v2/client/jquery-1.7.2.js"></script>      
  6. <script src="https://secure.payu.com.tr/openpayu/v2/client/json2.js"></script>     
  7. <script src="https://secure.payu.com.tr/openpayu/v2/client/openpayu-2.0.js"></script>      
  8. <script src="https://secure.payu.com.tr/openpayu/v2/client/plugin-payment-2.0.js"></script>
  9. <script src="https://secure.payu.com.tr/openpayu/v2/client/plugin-installment-2.0.js"></script>
  10. <link rel="stylesheet"  type="text/css" href="https://secure.payu.com.tr/openpayu/v2/client/openpayu-builder-2.0.css" />       
  11. <style type="text/css">
  12.  
  13. body{padding:0;margin:0;overflow:hidden;width:500px;height:500px;background:url(images/cardfinans_back.jpg) center center no-repeat;}
  14.  
  15. #kredi_karti_odeme{padding:70px 10px 10px 10px;font:12px arial;}
  16. #kredi_karti_odeme form{margin:0;padding:0;}
  17. #kredi_karti_odeme p{display:block;margin:0;padding:4px 0;color:#444;clear:both;}
  18. #kredi_karti_odeme p label{padding-top:6px;float:left;width:170px;font-family:arial;font-weight:bold;font-size:12px;}
  19. #kredi_karti_odeme form p select{padding:3px;font-size:14px;font-weight:bold;color:#444;margin:0 2px 0 2px;border:1px solid silver;}
  20. #kredi_karti_odeme form p input{margin-left:2px;padding:3px !important;font-size:14px;font-weight:bold;color:#444;}
  21. div.card{width:250px;height:25px;border:1px solid silver;margin-left:2px;padding:3px !important;font-size:14px;font-weight:bold;color:#444;cursor:text;}
  22. #payu-card-cvv-placeholder{width:50px !important;text-align:center;}
  23. #kredi_karti_odeme em.kredi_karti_hata{font-size:14px;font-weight:bold;color:red;}
  24. #cv2_help{position:absolute;display:none;border:1px solid black;margin-left:145px;margin-top:-140px;padding:0;}
  25. #cv2_help img{display:block;}
  26. #kullanici_bilgileri{padding-bottom:10px;border-bottom:1px solid #efefef;margin:10px 0;}
  27. #kullanici_bilgileri div{line-height:140%;font-size:13px;color:#444;}
  28. #kullanici_bilgileri div span{font-weight:bold;text-transform:capitalize;}
  29. div.buttonlar{text-align:center;padding:20px 0 0 0;}
  30. div.buttonlar input{cursor:pointer;padding:5px;margin:0 3px;font-size:13px;overflow:visible;font-weight:bold;border:1px solid silver;background:url(images/buton_back.gif) left top repeat-x;}
  31. #payu-preloader-overlay {width:100% !important;}
  32. </style>
  33. </head>
  34. <body scroll="no">
  35.    
  36.     <div id="kredi_karti_odeme">
  37.         <div id="kullanici_bilgileri">
  38.             <div>Sn.&nbsp;<span>asdasd&nbsp;asdasd,</span><br/><br/>Kredi kartınızdan <span>39,99 TL </span>(13,33 TL X 3 taksit) tutarında çekim işlemi yapılacaktır.   İşlemin gerçekleşmesini istiyorsanız; aşağıdaki ödeme formunu eksiksiz olarak doldurup, siparişi tamamlayınız.</div>
  39.         </div>
  40.         <div id="error" style="display:none;background:red;margin:5px 0;border:1px solid darkred;">
  41.             <div style="padding:5px;font:bold 13px arial;color:#fff;"></div>
  42.         </div>
  43.  
  44.         <form  method="post" name="sanalpos_odeme_form" id="sanalpos_odeme_form" autocomplete="off" >
  45.             <input type="hidden" class="card" id="payu-card-installment" value="3" />
  46.             <p>
  47.                 <label for="payu-card-cardholder" style="padding-top:10px;">Kart Üzerindeki İsim :</label>
  48.                 <div style="float:left;"><div id="payu-card-cardholder-placeholder" class="card" ></div></div>
  49.             </p>
  50.             <p>
  51.                 <label for="payu-card-number" style="padding-top:10px;">Kart Numarası :</label>
  52.                 <div style="float:left;"><div id="payu-card-number-placeholder" class="card" ></div></div>
  53.             </p>   
  54.             <p>
  55.                 <label for="payu-card-expm">Son Kullanma Tarihi (Ay/Yıl) :</label>
  56.                 <select id="payu-card-expm" style="width:50px;">
  57.                     <option value="01">01</option>
  58.                     <option value="02">02</option>
  59.                     <option value="03">03</option>
  60.                     <option value="04">04</option>
  61.                     <option value="05">05</option>
  62.                     <option value="06">06</option>
  63.                     <option value="07">07</option>
  64.                     <option value="08">08</option>
  65.                     <option value="09">09</option>
  66.                     <option value="10">10</option>
  67.                     <option value="11">11</option>
  68.                     <option value="12">12</option>
  69.                 </select>
  70.                 <select id="payu-card-expy" style="width:70px;">
  71.                
  72.                     <option value="2012">2012</option>
  73.                
  74.                     <option value="2013">2013</option>
  75.                
  76.                     <option value="2014">2014</option>
  77.                
  78.                     <option value="2015">2015</option>
  79.                
  80.                     <option value="2016">2016</option>
  81.                
  82.                     <option value="2017">2017</option>
  83.                
  84.                     <option value="2018">2018</option>
  85.                
  86.                     <option value="2019">2019</option>
  87.                
  88.                     <option value="2020">2020</option>
  89.                
  90.                     <option value="2021">2021</option>
  91.                
  92.                     <option value="2022">2022</option>
  93.                
  94.                 </select>
  95.             </p>
  96.             <p>
  97.                 <label for="payu-card-cvv-placeholder" style="padding-top:10px;">CV2 (Güvenlik Numarası) <a href="javascript:void(0);" style="text-decoration:none;font-weight:bold;color:red;font-size:13px;">?</a> :</label>
  98.                 <div style="float:left;"><div id="payu-card-cvv-placeholder" class="card" ></div></div>
  99.                 <div style="clear:both;"></div>
  100.             </p>   
  101.            
  102.             <div class="buttonlar">
  103.                 <input type="button" value="Vazgeç" onclick="window.top.SexyLightbox.close();" />
  104.                 <input type="submit" value="Ödemeyi Tamamla" id="kredi_karti_gonder_btn" />
  105.             </div>         
  106.         </form>
  107.         <form method="post" name="sanalpos_odeme_form2" id="sanalpos_odeme_form2" autocomplete="off" >
  108.             <input type="hidden" name="islem" value="890090001" />
  109.             <input type="hidden" name="tutar" value="39,99" />
  110.         </form>
  111.         <script>
  112.             $(function() {
  113.                 OpenPayU.Payment.setup({id_account : "BICANTAM",orderCreateRequestUrl:"payu_ocr.asp"});
  114.                 $('#kredi_karti_gonder_btn').click(function() {
  115.                     var Comment = "";
  116.                     OpenPayU.Builder.addPreloader('<span style="font:bold 13px arial;">Lütfen Bekleyin.</span>');
  117.                     OpenPayU.Payment.create({
  118.                         orderCreateRequestData : {
  119.                             Email :         'asd@asd.co',
  120.                             FirstName :     'asdasd',
  121.                             LastName :      'asdasd',
  122.                             TotalAmount :   '39.99',
  123.                             MerchantPosId:  'BICANTAM',
  124.                             ExtOrderId:     '186156333401'
  125.                         }
  126.                     },function(response) {
  127.                         if (response.Status.StatusCode == 'OPENPAYU_SUCCESS') {
  128.                             $("#sanalpos_odeme_form2").submit();
  129.                         } else {
  130.                             if (response.Status.Code == "10900"){
  131.                                 Comment = "Merchant başlığındaki imza yanlış gönderilmiş."
  132.                             } else if (response.Status.Code == "10910"){
  133.                                 Comment = "Tüccar Payu sisteminde bulunamadı."
  134.                             } else if (response.Status.Code == "10920"){
  135.                                 Comment = "XML belgesi bulunamadı veya boş."
  136.                             } else if (response.Status.Code == "10901"){
  137.                                 Comment = "İmza için geçersiz algoritma."
  138.                             } else if (response.Status.Code == "10902"){
  139.                                 Comment = "İmza doğrulanmadı."
  140.                             } else if (response.Status.Code == "10801"){
  141.                                 Comment = "OrderCreateRequest bölgesindeki Buyer düğümü geçersiz veya eksik."
  142.                             } else if (response.Status.Code == "10802"){
  143.                                 Comment = "Alıcı e-posta geçersiz veya eksik."
  144.                             } else if (response.Status.Code == "10803"){
  145.                                 Comment = "Alıcı adı geçersiz veya eksik."
  146.                             } else if (response.Status.Code == "10804"){
  147.                                 Comment = "Alıcı soyadı geçersiz veya eksik."
  148.                             } else if (response.Status.Code == "10805"){
  149.                                 Comment = "Geçersiz para birimi."
  150.                             } else if (response.Status.Code == "10850"){
  151.                                 Comment = "OrderCreateRequest içinde geçersiz fatura bilgileri."
  152.                             } else if (response.Status.Code == "10870"){
  153.                                 Comment = "OrderCreateRequest içinde geçersiz teslimat bilgileri."
  154.                             } else if (response.Status.Code == "10820"){
  155.                                 Comment = "OrderCreateRequest içinde geçersiz ürün bilgileri."
  156.                             } else if (response.Status.Code == "10821"){
  157.                                 Comment = "OrderCreateRequest içinde ürün bilgileri eksik."
  158.                             } else if (response.Status.Code == "10830"){
  159.                                 Comment = "OrderCreateRequest içindeki bir üründe ge?ersiz bilgi var."
  160.                             } else if (response.Status.Code == "10701"){
  161.                                 Comment = "Bu bir Kredi kartı ödeme yöntemi değil."
  162.                             } else if (response.Status.Code == "10702"){
  163.                                 Comment = "Tüccar bu ödeme yöntemi desteklemiyor."
  164.                             } else if (response.Status.Code == "10710"){
  165.                                 Comment = "Merchant Gateway yüklenemedi."
  166.                             } else if (response.Status.Code == "10720"){
  167.                                 Comment = "Bazı kart alanları hatalı yada eksik."
  168.                             } else if (response.Status.Code >= "10500" || response.Status.Code <= "10599"){
  169.                                 Comment = "Ödeme bazı iç nedenlerden dolayı başarısız oldu."
  170.                             } else if (response.Status.Code == "10751"){
  171.                                 Comment = "Bankadan geçersiz yanıt alındı."
  172.                             } else if (response.Status.Code == "10752"){
  173.                                 Comment = "Bu sipariş daha önce verilmiş."
  174.                             } else if (response.Status.Code == "3"){
  175.                                 Comment = "Ödeme 3D Secure ile devam edecektir. Süreç OpenPayU tarafından otomatik olarak izlenir."
  176.                             } else if (response.Status.Code == "10101"){
  177.                                 Comment = "Bu sipariş bu taksit sayısı ile ödenemez. Bu kart ile tek seferde ödemek için deneme yapabilirsiniz."
  178.                             } else if (response.Status.Code == "10102"){
  179.                                 Comment = "Bu ödeme için kullanılan kart bir kredi kartı değil. Bu kart ile tek seferde ödemek için deneme yapabilirsiniz."
  180.                             } else if (response.Status.Code == "10103"){
  181.                                 Comment = "Bu Kart tüccar veya sipariş tarafından desteklenmeyen bir sadakat programına kayıtlı. Bu kart ile tek seferde ödemek için deneme yapabilirsiniz."
  182.                             } else if (response.Status.Code == "0"){
  183.                                 Comment = "Ödeme başarıyla alındı."
  184.                             }else{
  185.                                 Comment = "Tanımsız Hata."
  186.                             }
  187.                            
  188.                             $('#error div').html("Hata : " + Comment).parent().delay(500).slideUp("fast").delay(100).slideDown("normal");
  189.                         }
  190.                         OpenPayU.Builder.removePreloader();
  191.                         return false;
  192.                     });
  193.                     return false;
  194.                 });
  195.             }());
  196.  
  197.         </script>
  198.     </div>
  199.     </body>
  200. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement