Repository navigation
v1.5.0
Optional Idempotency-Key on the create and process tools.
payware's API now accepts an optional Idempotency-Key header on the calls that create a payment. A retry with the same key and the same body, within 24 hours, returns the payment the first call created instead of creating a second one.
payware_operations_create_transactionandpayware_operations_process_transactiontake an optionalidempotencyKeyfor every role (merchant, ISV, payment institution) and send it as the header only when given.- The result reports
replayed: truewhen the server answered from the first call. - The same key with a different body is refused with
422 ERR_IDEMPOTENCY_KEY_REUSED; a retry while the first call is still running gets409 ERR_IDEMPOTENCY_KEY_IN_PROGRESS. - Process, finalize and cancel error notes now list
ERR_TRANSACTION_EXPIRED(404), which payware answers for a transaction whose time to live has run out, instead ofERR_MISSING_TRANSACTION.
Documentation: Retrying requests.