Developer
  • Getting started keyboard_arrow_down

    Discover

    • arrow_forward
      EV Charging

      Discover our unattended POS solution for the ev market

    Our solutions

    • arrow_forward
      CCV Terminal

      Integrate with a CCV Terminal

    • arrow_forward
      SoftPOS

      Turn your own device into a payment terminal

    • arrow_forward
      CCV Online Payments

      Accepting online payments in your platform without technical knowledge

    • arrow_forward

    • arrow_forward

    Connect to the CCV Platform

    Integrate our products into your software. Let's make payment happen together!

    Look at all the possibilities
  • Documentation
  • API Reference
menu
    • expand_less Payment API
      • expand_more General
        • Communication
        • Environments
        • Authentication
        • Idempotency
        • Transaction Types
        • Webhooks
        • Notifications
        • Error Handling
        • Security & Privacy
        • Return URL
      • expand_more Online Payments
        • expand_more Quick Start
          • Initial Setup
          • Create Payment
        • expand_more Basic Operations
          • Create A Payment
          • Refund A Payment
          • Authorise & Capture Payments
          • Query The Payment Status
        • expand_more Payment Features
          • expand_more 3D-Secure 2
            • SCA And 3D-Secure 2
            • Compliance Guide
            • Out Of Scope Transactions
            • Exemptions
          • Payment Links
          • Merchant Initiated Payments
          • Embedded Card Payments
          • Mandates
          • Customers & Loyalty
          • Partial Payment
        • expand_more Payment Methods
          • American Express
          • Apple Pay
          • Google Pay
          • expand_more Bancontact
            • Bancontact Walled Initiated Payments (WIP)
            • Bancontact Deferred Sales
          • Bancontact Mobile
          • Banktransfer
          • IDEAL
          • Klarna
          • Landingpage
          • Maestro
          • Mastercard
          • Payconiq
          • Paypal
          • Visa
        • expand_more Payouts
          • Split Payout
          • Test Payout
        • expand_more Developer Resources
          • Currencies
          • Languages
          • Payment Testing
          • Test Cards
      • expand_less In-person Payments
        • expand_less SoftPOS
          • expand_more General
            • Getting Started
            • Device Requirements
            • SoftPOS TerminalIds
            • SoftPOS Errors
            • Currencies
            • Languages
            • Network And Connectivity
            • Release Notes
          • expand_less Basic Operations
            • Install A Terminal
            • Make A Payment
            • Handling Receipts
          • expand_more API Reference
            • SoftPOS - API Reference
    • expand_more Board Your Merchants At CCV
      • expand_more General
        • Getting Started
        • Authentication
      • expand_more Boarding API
        • StartOrder
        • AddSalesPackage
        • AddProductPSPStandalone
        • AddProductPSPSubmerchant
        • AddTerminalPackage
        • SetShoppingCartPricingDetails
        • SubmitOrder
        • Boarding
      • API Reference
    • expand_more Android Rest Beta API
      • expand_more General
        • Getting Started
        • Brands
        • Supported Languages
      • expand_more Basic Operations
        • Make A Payment
        • Cancel A Payment
        • Handling Receipts
        • Show Display Messages
        • Recover A Payment
      • expand_more Payment Features
        • Authorise & Capture
        • Capture
      • expand_more Terminal Features
        • Transaction Overview
        • Brands
        • Period Closing
        • Terminal - Status
      • expand_more Tokenization
        • Tokenization - Get A Card Token
        • Read A Mifare Card
        • Custom Text On Terminal
      • expand_more API Reference
        • API Reference
    • expand_more Android SDK
      • expand_more General
        • Getting Started
        • Demo Application - Android SDK
        • Result States
        • Language Codes
        • Error Handling
        • Logging
        • EP2
        • Download SDK
        • Release Notes
      • expand_more Basic Operations
        • Make A Payment
        • Stop Ongoing Payment
        • Recover A Payment - Android SDK
      • expand_more Payment Features
        • Account Selection - Android SDK
        • Additional Receipt Text - Android SDK
        • Allow Or Deny Card Brands - Android SDK
        • Authorisation By Voice - Android SDK
        • Authorise - Android SDK
        • Capture - Android SDK
        • Card Detection - Android SDK
        • Card Detection Deprecated - Android SDK
        • Card Token - Android SDK
        • Card Validation - Android SDK
        • Customer Display - Android SDK
        • E-Receipt - Android SDK
        • Manual Card Information Entry - Android SDK
        • Payment Reversal - Android SDK
        • Refund - Android SDK
        • Request Transaction Information - Android SDK
        • Reservation - Android SDK
        • German Eichrecht - Android SDK
      • expand_more SDK Guides
        • Activate Terminal - Android SDK
        • Card Circuits - Android SDK
        • Card Reader Status - Android SDK
        • Card Reader Status - Android SDK
        • Check Password - Android SDK
        • Factory Reset - Android SDK
        • Get Config - Android SDK
        • Get Status - Android SDK
        • Mobile Phone Prepaid - Android SDK
        • Online Agent - Android SDK
        • Partial Period Closing - Android SDK
        • Period Closing - Android SDK
        • Possible Transaction Types - Android SDK
        • Retrieve Last Ticket - Android SDK
        • Retrieve Open Pre Authorisations - Android SDK
        • Startup - Android SDK
        • Taxfree - Android SDK
        • Terminal Administration - Android SDK
        • Terminal Discovery - Android SDK
        • Ticket Reprint Period Closing - Android SDK
        • Transaction Overview - Android SDK
        • Check Password - Android SDK
      • expand_more Hardware Access
        • Getting Started
        • NFC - Android SDK
        • Printing - Android SDK
        • QR And Barcode Scanner - Android SDK
      • expand_more API Reference
        • API Documentation
    • Android App Requirements
    • expand_more Certification
      • Introduction
      • expand_more Attended Certification Tests
        • expand_more Aborting
          • F1A - Regular Abort By Merchant
          • F1B - Failing Abort By Merchant
          • F1D - Hammering Abort By Merchant
        • expand_more Allowed Amounts
          • S1A - Transaction With Amount Of EUR 0,00
          • S1B - Transaction With Negative Amount
          • S1C - Transaction With Highest Possible Amount
          • S1D - Over-Amount Transaction
        • expand_more Connection Lost
          • Q1B - Manual Transaction Recovery
          • Q1C - Ethernet Connection With ITS Fails
          • Q1F - Device Unavailable
          • Q1G - Terminal Not Responding
          • T1A - Automatic Transaction Recovery
        • expand_more E Journal
          • M1A - Store E-Journal
          • M2A - ECR/POS Print Journal Receipts
          • M3A - ECR/POS Storing Journal Receipts
        • expand_more Reprint Ticket
          • L1A - Reprint Ticket
          • L1B - Reprint Ticket Declined Transaction
          • L2A - Reprint Ticket No Printer Available
          • L2B - Reprint Ticket Declined Transaction No Printer Available
        • expand_more Tickets
          • U1A - Request For Identification
          • U1B - Request For Signature
          • U1C - Request For Signature And Identification
          • U1D - Failing Transaction No Receipt
          • U1E - Split Payment
        • expand_more Time Out
          • R1A - Time Out On Presenting A Card
          • R1B - Time Out During Pin Entry
        • expand_more Transactions
          • C1A - Happy Flow
          • C1B - Happy Flow Contactless
          • C1D - Happy Flow Magnetic Stripe
          • C1E - Declined Transaction By Host
          • C1E - Transaction Aborted By Cardholder
          • C1F - Absence Of Thousand Separator
          • C1G - Cashier Display Messages
        • expand_more Validation
          • H1A - Too Many Fingers
          • H1B - Not Removing Card
          • H2A - Power Loss Or Closing Of ECR/POS During Transaction
      • expand_more Unattended Certification Tests
        • expand_more User Guidance
          • C1 - Successful Payment
          • C2 - Next Cardholder
          • C3 - Abort On PIN Entry
          • C4 - Time Out During PIN Entry
          • C5 - No Amount Entered
          • C6 - Language Selection
          • C7 - Amount To Authorise
          • C8 - Available Funds
        • expand_more Device Selection
          • D1 - Device Selection
          • D2 - Invalid Device
          • D3 - Charger Selection Abort
          • D4 - No Charger Selected
          • D5 - Authorisation With No Free Devices
        • expand_more Product Delivery
          • E1 - Product Selection
          • E2 - Enabled Products
          • E3 - Invalid Product Entered
          • E4 - Product Selection Aborted
          • E5 - No Product Selected
          • E6 - Max Delivery Time
          • E7 - Abort Session
          • E7 - Abort By POS
          • E9 - Not Started Charging In Time
          • E10 - Take More Fuel Than AVF
          • E10 - Multiple Sessions Mixed
          • E12 - Postpone Card Financial Advice On New Cardholder Card
          • E13 - Abort Session On Card Reinsert
        • expand_more Receipts
          • F1 - Cardholder Retrieve Receipt Info
          • F2 - Cardholder Receipt Retrieval
          • F3 - Reprint Ticket
          • F4 - F8 - Ticket Printing And Content
          • F9 - TrackingToken Deleted
          • F10 - Printer Paper Low
          • F11 - CardPayment Erased From Storage
          • F12 - E-Receipt Received By Cardholder
          • F13 - E-Receipt Failure
        • expand_more Transaction Limit Handeling Maestro
          • G1 - Maestro CardPayment 1 Euro
          • G2 - Maestro CardPayment 30 Euro
          • G3 - Maestro CardPayment 60 Euro
          • G4 - Maestro CardPayment 500 Euro
        • expand_more Transaction Limit Handeling Mastercard
          • H1 - Mastercard CardPayment 1 Euro
          • H2 - Mastercard CardPayment 30 Euro
          • H3 - Mastercard CardPayment 60 Euro
          • H4 - Mastercard CardPayment 500 Euro
        • expand_more Mifare Handling
          • I1 - Happy Flow Mifare
          • I2 - Unknown Mifare Card
          • I3 - No Mifare Card Presented
          • I4 - Mastercard Presented
        • expand_more Card Circuits
          • L1 - Available Card Circuits
        • expand_more Reconciliation
          • M1 - Reconciliation As Function
          • M2 - Reconciliation By New Shiftnumber
          • M3 - POS Auto Triggers Reconciliation With Closure
        • expand_more Journal
          • N1 - Journal Accessible By Authorized Employees
          • N2 - Journal Cannot Be Altered
        • expand_more Exception Flows
          • O1 - Unknown Card Session
          • O2 - Maximum Time Out
          • O3 - Device Unavailable
          • O4 - Time Out Card-Type Fallback
          • O5 - Time Out On Presenting Card
          • O6 - App Stability
          • O7 - Automatic Startup
          • O8 - Sleep Mode Not Supported
          • O8 - Sleep Mode Supported
        • expand_more Recovery
          • X1 - Recovery After Communication Failure
          • X2 - Recovery After CCV Component Update
          • X3 - Recovery After 24 Hour Reboot
          • X4 - Recovery After CCV-Fusion Client Restart
          • Y1 - Recovery After Power Failure With No Battery Backup
          • Y2 - Recovery After Power Failure With Battery Backup
      • expand_more SoftPOS Certification Tests
        • expand_more Success Scenarios
          • Installation Success - SoftPOS Certification Test
          • Payment Success - SoftPOS Certification Test
        • expand_more Failed Scenarios
          • Installation Failed - CCV SoftPOS App Not Installed - SoftPOS Certification Test
          • Payment Failed - Declined - SoftPOS Certification Test
          • Payment Failed - CCV SoftPOS App Is Closed During Payment - SoftPOS Certification Test
          • Payment Failed -CCV SoftPOS App Is Killed During Payment - SoftPOS Certification Test
          • Payment Failed - SoftPOS App Not Installed Anymore - SoftPOS Certification Test
        • expand_more Other Scenarios
          • Other Scenario - Data Cleared Of The CCV SoftPOS App - SoftPOS Certification Test
    • expand_more Development Kits
      • SoftPOS Dev Kit
      • IM30 Dev Kit
    • Glossary

Payment API

  • General
    • Communication
    • Environments
    • Authentication
    • Idempotency
    • Transaction Types
    • Webhooks
    • Notifications
    • Error Handling
    • Security & Privacy
    • Return URL
  • Online Payments
    • Quick Start expand_more
      • Initial Setup
      • Create Payment
    • Basic Operations expand_more
      • Create A Payment
      • Refund A Payment
      • Authorise & Capture Payments
      • Query The Payment Status
    • Payment Features expand_more
      • 3D-Secure 2 expand_more
        • SCA And 3D-Secure 2
        • Compliance Guide
        • Out Of Scope Transactions
        • Exemptions
      • Payment Links
      • Merchant Initiated Payments
      • Embedded Card Payments
      • Mandates
      • Customers & Loyalty
      • Partial Payment
    • Payment Methods expand_more
      • American Express
      • Apple Pay
      • Google Pay
      • Bancontact expand_more
        • Bancontact Walled Initiated Payments (WIP)
        • Bancontact Deferred Sales
      • Bancontact Mobile
      • Banktransfer
      • IDEAL
      • Klarna
      • Landingpage
      • Maestro
      • Mastercard
      • Payconiq
      • Paypal
      • Visa
    • Payouts expand_more
      • Split Payout
      • Test Payout
    • Developer Resources expand_more
      • Currencies
      • Languages
      • Payment Testing
      • Test Cards
  • In-person Payments
    • SoftPOS
      • General expand_more
        • Getting Started
        • Device Requirements
        • SoftPOS TerminalIds
        • SoftPOS Errors
        • Currencies
        • Languages
        • Network And Connectivity
        • Release Notes
      • Basic Operations
        • Install A Terminal
        • Make A Payment
        • Handling Receipts
      • API Reference expand_more
        • SoftPOS - API Reference

What's on this page

  • Make a payment
    • Introduction
    • Transaction session
    • 1. Make a payment request
      • API Request​
      • API Request
      • API Response
    • 2. Start the transaction via the SDK
      • 2.1 SDK example
      • 2.2 Deeplink example
    • 3. Get the transaction result
      • API Request​
      • API Response
  • Follow-up manuals
In-person Payments / SoftPOS / Basic Operations / Make A Payment

Make a payment

Introduction

This guide will walk you through the process to do a payment with CCV SoftPOS.

Prerequisites

  • You have a SoftPos terminal with an successful installation
    More info can be found at Install a terminal

Transaction session

When making a payment the CCV SoftPOS app will need to start a transaction session that will be used for making a payment. Creating this transaction session takes some time thus increasing the total time it takes to make a payment. Optionally you can start this transaction session yourself before making a payment. This can be done in the background and this will make for a faster transaction startup.

For example you can start this transaction session in the background when the transaction amount is being entered by the user. Once the user starts the transaction the session will already be created and the payment will go smoother.

Start a transaction session (Java)

    
    SoftPosService softPosService = SoftPosService.getInstance(this.applicationContext);
    //This method will return immediately and will continue in the background asynchronously.
    softPosService.initTransactionSession();
    

1. Make a payment request

CCV has a single Payment API that support multiple payment solutions.
The following request starts a SoftPOS payment.

API Request​

  • End-point: /api/v1/payment
  • Method: POST​
  • Authentication: API Key
  • Request Headers
    • Content-Type: application/json​

API Request

Response parameters

Parameter Description
type Fixed value: sale
amount The amount of the transaction
currency An ISO 4217 three-letter code.
method The payment method that the customer chooses.
language The language of the customer.
details.terminalId The terminal id as assigned by CCV.
merchantOrderReference Own reference, maximum 255 characters, of the order associated with this payment

Example

{
  "type": "sale",
  "amount": 5,
  "currency": "eur",
  "method": "softpos",
  "language": "eng",
  "details": {
    "terminalId": "SP001"
  }
}

API Response

Response parameters

Parameter Description
status The status of the payment
type Fixed value: sale
amount The amount of the transaction
currency An ISO 4217 three-letter code.
method The payment method that the customer chooses.
language The language of the customer.
reference A reference, maximum 255 characters, of the order associated with this payment
created The local server datetime the payment was created, epoch timestamp.
lastUpdate The local server datetime the payment was updated, epoch timestamp.
methodTransactionId A third party transaction ID which identifies the payment transaction in external systems. If empty no such id was available or no third party was employed.
details.terminalId The terminal id as assigned by CCV.

Example

{
  "status": "pending",
  "type": "sale",
  "amount": 5,
  "currency": "eur",
  "method": "softpos",
  "language": "eng",
  "reference": "TL220621151342826CB87E2F6.0",
  "created": 1655817222828,
  "lastUpdate": 1655817222828,
  "methodTransactionId": "665b139a-ff38-44ed-be78-4ff010cbd31b",
  "details": {
    "terminalId": "SP001"
  }
}

2. Start the transaction via the SDK

2.1 SDK example

Start the transaction (Java)


    SoftPosService softPosService = SoftPosService.getInstance(this.applicationContext);
    //The methodTransactionId comes from the response of the previous API request
    softPosService.startTransaction(activity, methodTransactionId, this::handleTransactionResult);

    private Unit handleTransactionResult(SoftPosTransactionResult result) {
        if(result instanceof TransactionSucceeded) {
            showAlertDialog("SoftPos Transaction", "Transaction succeeded");
        } else if (result instanceof TransactionFailed) {
            showAlertDialog("SoftPos Transaction", "Transaction failed with error: " + ((TransactionFailed) result).getError());
        }

        return Unit.INSTANCE;
    }

2.2 Deeplink example

2.2.1 Deeplink url

Deeplink url on development

ccvsoftpos-demo://transaction?methodTransactionId={methodTransactionId}&callback={callback}

ccvsoftpos-demo://transaction?methodTransactionId=myMethodTransactionId&callback=https%3A%2F%2Fccvposexample.eu%2Ftransaction-complete

Deeplink url on production

ccvsoftpos://transaction?methodTransactionId={methodTransactionId}&callback={callback}

ccvsoftpos://transaction?methodTransactionId=myMethodTransactionId&callback=https%3A%2F%2Fccvposexample.eu%2Ftransaction-complete

2.2.2 Deeplink callback

❗️The callback url needs to be URL encoded❗️

The callback should be a url scheme that will redirect to the webpage of the integrator. When the transaction completes the CCV SoftPOS app will redirect back to the callback url. Launching the callback url is a best effort from the CCV SoftPOS app. If the callback url is not url encoded or overal an invalid url, the CCV SoftPOS app will continue with the transaction but not launch the callback url on transaction completion.

  • In case of a successful transaction the callback will be followed by a status:
    {callback}?status=SUCCEEDED
    https://ccvposexample.eu/transaction-complete?status=SUCCEEDED
    
  • In case of a failed transaction the callback will be followed by a status, a failure and failureCode with an optional internalErrorCode and optional reason:
    {callback}?status=FAILED&failure={FAILURE}&failureCode={failure_code}&internalErrorCode={internal_error_code}&reason={REASON}
    https://ccvposexample.eu/transaction-complete?status=FAILED&failure=TRANSACTION_ERROR&failureCode=NETWORK_ERROR&internalErrorCode=31001&reason=NETWORK_CONNECTION_ERROR
    

2.2.3 Invalid deeplink scheme

❗️When launching the “ccvsoftpos://” deeplink with a path other then (installation or transaction) the transaction will fail with an INVALID_URL_SCHEME (11010) failure, only if a callback url is provided. If no callback url is provided, the CCV SoftPOS app will just close❗️

3. Get the transaction result

In the example above you saw that you receive a SoftPosTransactionResult from the SDK once the payment has completed. This result will be mainly used for error handling and collecting info in case of an issue. For receiving the status of the transaction with transaction receipts you will need to get the transaction info from our Payment API.

API Request​

  • End-point: /api/v1/transaction
  • Method: GET​
  • Authentication: API Key
  • Request Headers
    • Content-Type: application/json​
  • Query parameter
    • reference: the reference of the response of the payment API request

API Response

Response parameters

Parameter Description
status The status of the payment
type Fixed value: sale
amount The amount of the transaction
currency An ISO 4217 three-letter code. Fixed value: eur
method The payment method that the customer chooses.
language The language of the customer.
merchantOrderReference Own reference, maximum 255 characters, of the order associated with this payment
reference A reference, maximum 255 characters, of the order associated with this payment
created The local server datetime the payment was created, epoch timestamp.
lastUpdate The local server datetime the payment was updated, epoch timestamp.
details.terminalId The terminal id as assigned by CCV.

Example

  {
    "type":"sale",
    "amount":5.00,
    "currency":"eur",
    "method":"softpos",
    "brand":"maestro",
    "language":"nld",
    "reference":"TL220621152314122CB87E2F4.0",
    "lastUpdate":1655817804294,
    "created":1655817794124,
    "status":"success",
    "details":{
        "terminalId":"SP001",
        "customerReceipt":"[\" Kopie Kaarthouder\",\" \",\"********* PAS OP: TEST SYSTEEM *********\",\" \",\" \",\"Terminal: 20000002  Merchant: 1234      \",\"Periode: 2172       Transactie: 00003324\",\"Contactloze betaling\",\" (A0000000043060)\",\"Kaart: 67340xxxxxxxxxxxxxx\",\"Kaartnr: 01         Exp. Datum: 31/03/23\",\" \",\"BETALING\",\"21/06/2022 15:23    Auth. code:   n0SG25\",\" \",\"Totaal:     5,00 EUR\",\" \",\"      AKKOORD\"]",
        "journalReceipt":"[\"                JOURNAAL\",\" \",\"********* PAS OP: TEST SYSTEEM *********\",\" \",\" \",\"Terminal: 20000002  Merchant: 1234      \",\"Periode: 2172       Transactie: 00003324\",\" (A0000000043060)\",\"Kaart: 67340xxxxxxxxxxxxxx\",\"Kaartnr: 01         Exp. Datum: 31/03/23\",\" \",\"BETALING\",\"21/06/2022 15:23    Auth. code:   n0SG25\",\" \",\"Totaal:     5,00 EUR\",\"      AKKOORD\",\"ACQUIRER ID:    00000002\",\"TRANSACTION TREATMENT RES. 0000\",\"  ================\"]",
        "eJournal":"\r\n  \r\n    \r\n    20000002\r\n    1234\r\n  \r\n  \r\n    2172\r\n    00003324\r\n    BETALING (Contactloze betaling)\r\n    2022-06-21T15:23\r\n    n0SG25\r\n    5,00\r\n    5,00\r\n    AKKOORD\r\n    00000002\r\n    0000\r\n  \r\n  \r\n    Maestro\r\n    \r\n    \r\n    67340xxxxxxxxxxxxxx\r\n    01\r\n    31/03/23\r\n    \r\n    \r\n  \r\n"
    }
  }

Follow-up manuals

  • Handling receipts

Go to

Home
Documentation




Cookies Privacy Statement