package Ġio . h azel net . card ano . connect . controllers Ċ Ċ import Ġio . h azel net . card ano . connect . data . payment . Payment Confirmation Ċ import Ġio . h azel net . card ano . connect . services . Payment Service Ċ import Ġorg . springframework . format . annotation . DateTime Format Ċ import Ġorg . springframework . http . HttpStatus Ċ import Ġorg . springframework . web . bind . annotation .* Ċ import Ġjava . util .* Ċ Ċ @ RestController Ċ @ RequestMapping ( ("/ payment ")) Ċ class ĠPayment Controller ( ĊĠĠĠ Ġprivate Ġval Ġpayment Service : ĠPayment Service , Ċ ) Ġ{ ĊĠĠĠ Ġ@ GetMapping ("/ { wallet Address }") ĊĠĠĠ Ġ@ ResponseStatus ( HttpStatus . OK ) ĊĠĠĠ Ġfun Ġverify Address ( ĊĠĠĠĠĠĠĠ Ġ@ PathVariable Ġwallet Address : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ RequestParam Ġpayment Amount Ġ: ĠLong , ĊĠĠĠĠĠĠĠ Ġ@ RequestParam Ġ@ DateTime Format ( iso Ġ= ĠDateTime Format . ISO . DATE _ TIME ) Ġear liest Block Time Ġ: ĠDate ĊĠĠĠ Ġ) Ġ: ĠPayment Confirmation Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġpayment Service . verify ( wallet Address , Ġpayment Amount , Ġear liest Block Time ) ĊĠĠĠ Ġ} Ċ }