Development and testing

For getting started more easily with Nexi POS API we provide a simulator, which behaves the same as real integrations will but without connecting to any other systems. The Getting Started guide has more instructions on how to start using a simulator.

The terminal features that the simulator supports are listed under Supported features.

Controlling simulator behavior

By default the simulator simulates successful purchases, but other terminal behaviors can be triggered by providing a specific amount when creating the purchase. This is useful for verifying that the client works as expected for every success and failure case.

Before going live with a production client that uses real terminals clients should be exercised with a wide range of tests that ensure payments are handled properly in every conceivable scenario. The simulator is very helpful for doing that.

Success scenarios

requested_amountDescription
100001Successful transaction with 2-second delay
100002Instant successful transaction (0 seconds)

Error scenarios

requested_amountDescription
100003Transaction rejected by payment processor
100004Transaction aborted (customer cancelled)
100005Card removed during processing
100006Issuer error (bank declined)
100007Internal system error
100008Network connectivity error
100009Card/payment method not accepted

Different payment methods

requested_amountDescription
100010Successful PIN-verified contactless transaction
100011Successful contactless with cardholder verification
100012Successful chip card without PIN
100013Successful chip card with PIN
100014Successful magnetic stripe with signature
100015Successful magnetic stripe with PIN
100016Successful chip card with PIN (alternative mode)

Special features

requested_amountDescription
100017Successful transaction with 10% tip added
100018Successful transaction with 1.5% surcharge
100019Successful transaction with Dynamic Currency Conversion enabled