Add code to payment

subtotal payment: 10000

code payment: (random from 1-10) example: 7

total payment: 10007





is this possible to make a modification like this?