A plain ROLLBACK cancels an entire SQL transaction even if the failure happened on the final step. SAVEPOINT sets a checkpoint inside the transaction: using ROLLBACK TO SAVEPOINT, you can undo only the failed payment, keep the order intact, and finish with COMMIT without hitting subtransaction limits.