Uncategorized

POST Sale Request

The type is sent as 2 when the transaction needs to be sent as authorization and capture at the same time

Sample Code


{   
   "amount":"206.81", 
   "method":"CC", 
   "type":"2", 
   "nonce":{{$timestamp}}, 
   "test":"0", 
   "reference_transaction_id":"", 
   "client_ip":"172.26.15.177", 
   "device_code":"", 
   "market_code":"E", 
   "referrer_url":"onepay.com", 
   "notes":"000047130010", 
   "card":{   
      "number":"4242424242424242", 
      "code":"", 
      "expiration_date":"0420", 
      "type":"VI", 
      "track_data":"" 
   }, 
   "customer":{   
      "first_name":"Karim", 
      "last_name":"Benzema", 
      "street_1":"", 
      "street_2":"", 
      "city":"", 
      "state":"", 
      "zip":"", 
      "country":"", 
      "phone_number":"", 
      "company":"", 
      "customer_id":"AUTO", 
      "invoice_number":"123456789", 
      "email":"", 
      "email_receipt":"NO", 
      "notes":"Certifyglobal", 
      "action_code":"1" 
   }, 
   "custom_fields":[   
      {   
         "id":"1", 
         "value":"Certifyglobal Test" 
      } 
   ], 
    "additional_data":[   
      {   
         "id":"USER", 
         "value":"Amex" 
      }, 
      {   
         "id":"SOURCE", 
         "value":"PS" 
      } 
   ] 
}