Skip to content

Instantly share code, notes, and snippets.

View techsharif's full-sized avatar

Md. Sharif Chowdhury techsharif

View GitHub Profile
import datetime
import requests
import xml.etree.ElementTree as ET
POST_URI = 'http://116.212.108.236:802/PaymentServices.asmx?op=PaymentRequestFromECom'
user_id = 'ecomauser'
password = 'itreus#7102'
vendor_code = 'GP'
phone_number = '01989782605'
post_or_pre = 1
<?php
// for data add
function add_data($id, $name, $phone)
{
$data = sprintf('%10d%60s%15s', $id, $name, $phone);
$file = fopen('db.txt', 'a');
fwrite($file, $data);
fclose($file);
}