API class
Javascript
P S P Integration
Widgets | Plugins
Use Cases | Tutorials
kasssh API POST structure

/charge/create

Creates a payment-token for a kasssh payment promise. Used at the merchant checkout to establish a `promise to pay` for the shopping cart. The returned token is used by other APIs as a master-key or ID for future operations as to this `promise to pay`. This API is used by the kasssh popup and need not be called directly - see Javascript -> Libraries -> Popup.js
JSON Return Object
if reply.success is true then data: { 'token' : generated-key-string }
 
Data Options (** means required )
key **
Live or Sandbox Key
TEXT
store_id **
Store ID
INTEGER
vendor_id **
Merchant reference; normally a Cart ID#
TEXT
amount **
Payment in pence/cents
INTEGER
email **
customer or `buyer` email
EMAIL
address **
customer address
TEXT
zip **
customer zip/postcode
TEXT
mobile
customer or `buyer` mobile; required for SMS
TEXT
first_name
Customer or `'buyer` first or given name
TEXT
last_name
Customer or `'buyer` last or surname
TEXT
description
Description of goods
TEXT
 
POST ( https://api.kasssh.com/api )