book a web3,8777
Following: 2 | Followers: 2
· about 1 month ago
module X402 class PaymentMiddleware < X402::Middleware # 必须继承 def initialize(app) @app = app enddef call(env) status, headers, body = @app.call(env)# 支付成功后记录if status == 200 && headers['X-Payment-Response'].present? && env['HTTP_X402_PAYMENT'].present? binding.pry begin ...
显示更多Share with your followers.
Reply