PayPay Interview Question

What would you consider while building a payment processor/transaction