I'm integrating Paymill in my Rails app. I'm using the 'paymill' gem. When I make a transaction like this:
Paymill::Transaction.create(amount: amount,
currency: "BGN",
client: client.paymill_id,
payment: paymill_id,
description: order.code)
This will return a transaction object. The transaction object has a response code. The response code is 20000 for a successful transaction.
Is this the only scenario when a transaction will be successful? Is it possible the response code to be different than 20000 and at some later point the transaction to succeed? Do I need to setup webhooks to wait for some event? Do I need to be checking the status of the transaction(open, pending, closed, failed, partial_refunded, refunded, preauthorize, chargeback)?