QSAPI Transaction

To use the eToken with Bluefin's PayConex API (QSAPI) you need to use the eToken parameter.

Note: when you include the eToken parameter in a QSAPI request, it will override the values set in the number, expy, and cvv values. For further details on the other supported QSAPI parameters, please refer to the QSAPI document Bluefin PayConex API Library.

The following is an example of a QSAPI request; to replicate the transaction make sure to replace the placeholders with the appropriate values for your account <replace_account_id>, <place_api_accesskey_here> and <place_token_here>.

Example QSAAPI Requests

curl "https://secure.payconex.net/api/qsapi/3.8/" \
    -X POST \
    --header "Content-Type: application/x-www-form-urlencoded" \
    --header "Cache-Control: no-cache" \
    -d response_format=JSON \
    -d account_id=<replace_account_id> \
    -d api_accesskey=<place_api_accesskey_here> \
    -d tender_type=CARD \ 
    -d transaction_type=SALE \ 
    -d transaction_amount=99.00 \
    -d first_name=Joseph \ 
    -d etoken=<place_token_here> \
    -d custom_id=f04f4fee-91a7-4329-9d65-c228dbd8319a
    header('Content-type: text/plain');
    $qs = new QuickSwipePost();
    $qs->setParams(array (
        'account_id'              => '<replace_account_id>',
        'api_accesskey'           => '<place_api_accesskey_here>',
        'tender_type'             => 'CARD',
        'transaction_type'        => 'SALE', 
        'transaction_amount'      => 176.58, 
        'transaction_description' => 'Test transaction', 
        'eToken'                  => '<place_token_here>', 
        'first_name'              => 'John',
        'last_name'               => 'Smith',
        'street_address1'         => '123 Main St',
        'city'                    => 'Anytown',
        'state'                   => 'NY',
        'zip'                     => '10101',
        'phone'                   => '212-555-1212',
    $response = $qs->getResponse();

Did this page help you?