<script>
function callPaymentAPI() {
  fetch('https://gateway20.pelecard.biz/services/AuthorizeCreditCard', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      terminalNumber: '0882577012',  // כתובת הטרמינל
      user: 'meorothadaf',  // שם משתמש
      password: 'sot8Dnfz',  // סיסמא
      shopNumber: '001',  // מספר חנות
      creditCard: '4111111111111111',  // מספר כרטיס האשראי
      creditCardDateMmYy: '12/23',  // תאריך תפוגה
      Token: '',  // השאר ריק אם לא יש לך טוקן מראש
      total: '100',  // סכום הסליקה
      createtoken: '',  // אם צריך ליצור טוקן, הכנס ערך
      currency: '1',  // מטבע (1 עבור ש"ח)
      cvv2: '123',  // קוד CVV
      id: '123456789',  // מזהה ייחודי
      paramX: 'test'  // פרמטר נוסף אם צריך
    })
  })
  .then(response => response.json())
  .then(data => {
    console.log(data);  // הצגת התשובה שהתקבלה
  })
  .catch(error => {
    console.error('Error:', error);  // טיפול בשגיאות
  });
}
</script>
>

				
			
Select your currency
דילוג לתוכן