Transaction sales are submitted and immediately flagged for settlement.
https://eebill.com/apitransaction/
Key | Description | Type | Additional information |
---|---|---|---|
Apikey | Get Apikey from your account | string | required |
Content-Type | pass "application/json" | string | required |
TerminalId | Get TerminalId from your account | string | required |
Name | Description | Type | Additional information |
---|---|---|---|
mid | pass mid and Get mid from your account | int | required |
type | pass "Sale" type | string | required |
billing_firstname | billing first name detail | string | required |
billing_lastname | billing last name detail | string | required |
billing_company | billing company detail | string | required |
billing_address1 | billing address detail | string | required |
billing_address2 | billing address detail | string | required |
billing_city | billing city detail | string | required |
billing_state | billing state detail | string | required |
billing_zip | billing zip code | string | required |
billing_country | billing country detail | string | required |
billing_phone | billing phone number | string | required |
billing_mobile | billing mobile | string | required also billing mobile is compare with OTP send mobile number |
billing_fax | billing fax | string | required |
billing_email | billing email | string | required |
billing_website | billing website | string | required |
shipping_firstname | shipping first name | string | required |
shipping_lastname | shipping last name | string | required |
shipping_company | shipping company | string | required |
shipping_address1 | shipping address | string | required |
shipping_address2 | shipping address | string | required |
shipping_city | shipping city | string | required |
shipping_state | shipping state | string | required |
shipping_zip | shipping zip code | string | required |
shipping_mobile | shipping mobile number | string | required |
shipping_country | shipping country | string | required |
shipping_phone | shipping phone number | string | required |
shipping_fax | shipping fax number | string | required |
shipping_email | shipping email id | string | required |
shipping_website | shipping website | string | required |
ccnumber | Credit card number. | int | required |
ccexp | Credit card expiration date. Format: MMYY | int | required |
cvv | The card security code. it is strongly recommended. | int | required |
otp | one-time password or pin (OTP). it is strongly recommended. | int | required |
orderdescription | Order description of product | string | required |
tax | Total tax amount. Format: x.xx | decimal | required |
shipping | Total shipping amount. Format: x.xx | decimal | required |
ponumber | Original purchase order | string | required |
amount | Total amount to be charged. For validate, the amount must be omitted or set to 0.00. Format: x.xx | decimal | required |
cardholder_name | Credit card holde name | string | required |
user_ip | User ip address | string | required |
{ "mid": 15, "type": "sale", "billing_firstname": "jon", "billing_lastname": "smith", "billing_company": "jon plv", "billing_address1": "appla", "billing_address2": "ring road", "billing_city": "brooklyn", "billing_state": "new york", "billing_zip": "11223", "billing_country": "united state", "billing_phone": "9999999999", "billing_mobile": 9885854585, "billing_fax": "9555255545", "billing_email": "test@test.com", "billing_website": "https://yoursite.com", "shipping_firstname": "jon", "shipping_lastname": "smith", "shipping_company": "jon plv", "shipping_address1": "appla", "shipping_address2": "ring road", "shipping_city": "brooklyn", "shipping_state": "new york", "shipping_zip": "11223", "shipping_mobile": 9999999999, "shipping_country": "united state", "shipping_phone": "9555255545", "shipping_fax": "9555255545", "shipping_email": "test@test.com", "shipping_website": "https:/yoursite.com", "ccnumber": 4111111111111111, "ccexp": 1025, "cvv": 123, "otp": 565623, "orderdescription": "Test product", "tax": 0, "shipping": 0, "ponumber": 123456, "amount": 200.5, "user_ip": "127.0.0.1", "cardholder_name": "test user" }
{ "TYPE": "SUCESS", "MESSAGE": "Approved Transaction", "DATA": { "response": "1", "responsetext": "SUCCESS", "authcode": "198980", "transactionid": 99958, "avsresponse": "N", "cvvresponse": "N", "orderid": 33159, "type": "sale", "response_code": "100" } }
$curl = curl_init(); // josn post $josn_data = '{ "mid": 15, "type": "sale", "billing_firstname": "jon", "billing_lastname": "smith", "billing_company": "jon plv", "billing_address1": "appla", "billing_address2": "ring road", "billing_city": "brooklyn", "billing_state": "new york", "billing_zip": "11223", "billing_country": "united state", "billing_phone": "9999999999", "billing_mobile": 9885854585, "billing_fax": "9555255545", "billing_email": "test@test.com", "billing_website": "https://yoursite.com", "shipping_firstname": "jon", "shipping_lastname": "smith", "shipping_company": "jon plv", "shipping_address1": "appla", "shipping_address2": "ring road", "shipping_city": "brooklyn", "shipping_state": "new york", "shipping_zip": "11223", "shipping_mobile": 9999999999, "shipping_country": "united state", "shipping_phone": "9555255545", "shipping_fax": "9555255545", "shipping_email": "test@test.com", "shipping_website": "https:/yoursite.com", "ccnumber": 4111111111111111, "ccexp": 1025, "cvv": 123, "otp": 565623, "orderdescription": "Test product", "tax": 0, "shipping": 0, "ponumber": 123456, "amount": 200.5, "cardholder_name": "test user","user_ip": "127.0.0.1" }'; curl_setopt_array($curl, array( CURLOPT_URL => "http://eebill.com/apitransaction/", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => $josn_data, CURLOPT_HTTPHEADER => array( "apikey: 15_TlygzlUXTzsQidLamHaQtxTmgTjC88541414521452", "content-type: application/json", "terminalid: 215JFKILFDq8541414145214" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }