EdgePay Developer Tools

EdgePay Pivot is a JavaScript Library and Function that you can add to your Payment page and bypass sending sensitive card data to your server, thus eliminating the risks associated with storing, processing, or transmitting credit card data and allows you to operate in a PCI Compliance way.

You would use this Library and Function if do not want to store, process, or transmit card data on your system. If your design already includes server-side card processing, this library and function may not be for you.

Dealing with Pivot Key Responses

Here is a table of all responses and appropriate action to take:

RESULTRESPONSE CODERESPONSE MESSAGERECOMMENDED NEXT ACTION
AEP0020Pivot Key Generation SuccessfulUse the Pivot Key to generate Payment Page
CEP0900Message format not supportedCall GET for support
CEP0102The value 'xxx' of element 'merchantID' is not validThe Merchant ID in the request packet is not valid. Verify your input
CEP0102The value 'xxx' of element 'terminalID' is not validThe Terminal ID in the request packect is not valid. Verify your input
CEP0012Authentication failed, please use valid credentialsThe Merchant Key is not valid. Update Merchant key.
DEP0101The value of element 'externalReferenceID' is missingThe externalReferenceID must be included with every request, and be unique
DEP0101The value of element 'merchantID' is missingThe merchantID must be included with every request, and be unique
DEP0101The value of element 'terminalID' is missingThe terminalID must be included with every request, and be unique
REP0999System ErrorInternal Server error, please retry request


Full Response Format

Here are the details of the Pivot Key response message:

FIELDATTRIBUTEDESCRIPTION
resultA/1A = Approved
D = Decline
R = Retry
C = Call for Help
responseCodeAN/6The 6-digit code and the table below may be used for determining next step in your code
resultA/1A = Approved
D = Decline
R = Retry
C = Call for Help
responseMessageAN StringText describing the condition
timestampN/CalendarYYYY-MM-DD-hh-mm-ss
pivotAuthKey256 bitsJSON Web Key