open menu
axerve docs
Payments/Payment management/Modifying payments/Cancel an authorized payment

Cancel an authorized payment 

SOAP

This is the operation by which it is possible to cancel an authorized transaction. It may be performed only if M.O.T.O. is set with separate phases.

The WSs2s web service call to use for this purpose is CallDeleteS2Sapi link. Click the link to see the API.

However, before using this method, it is necessary to assign to CallDeleteS2S arguments all the information required to securely identify the transaction to be settled.

A transaction may be uniquely identified by the pair shopLogin + bankTransactionId, where shopLogin is the merchant code and bankTransactionId is the code assigned to the transaction by Axerve Ecommerce Solutions.

It is however also possible to use the code assigned to the transaction by the merchant (shopTransactionId), taking care to ascertain that this code uniquely identifies a transaction; otherwise CallDeleteS2S will return an error code referring to a Non-uniquely identified transaction.

To do so it is sufficient to fill the following specific fields:

  • shopLogin (merchant code)

  • bankTransactionId (Axerve Ecommerce Solutions Transaction Identification Code) or shopTransactionId (Merchant Transaction Identification Code)

In order to know the result of this operation it is sufficient to consult the technical result by reading in the following fields in the response:

  • ErrorCode (if 0, everything is OK)

  • ErrorDescription (contains a textual explanation of the ErrorCode, in the configured language).

Previous
prevHow to create a customised payment page
Next
Reverse a settled payment next

Create your test account to try the service!

Register
© 2007-2024 Axerve S.p.A. Company with Single Shareholder belonging to the Maurizio Sella S.a.a. VAT Group with VAT no. 02675650028 – Tax Code 02686620028 – Biella Court registration no. 71524 – Piazza Gaudenzio Sella 1, 13900 Biella – Share Capital € 4,000,000.00 fully paid-in – Registered in the Reg. Impr. C.C.I.A.A. Monte Rosa Laghi Alto Piemonte – Registered in the Register of Payment Institutions.