Pay callback process testing

 

 

background

From the console, you can see dubbo success, create payment orders and messages stored in the database can be successful, but the message failed.

Message using a combination of springboot manner.

1. Start related projects

Because MQ information received from the need to modify the order, so order item should start, and order-related users, Coupon Program should start.

2. Test in the payService

Need to add System.in.read (), to prevent the test program stops, and has not had time to message

3. Test in a web project

4. Test error message

 

Payment error correction process to send a message

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.alibaba.dubbo.spring.boot.DubboProviderAutoConfiguration': Invocation of init method failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Fail to start server(url: dubbo://192.168.21.1:20885/com.itheima.api.IPayService?anyhost=true&application=dubbo-pay-provider&bind.ip=192.168.21.1&bind.port=20885&channel.readonly.sent=true&codec=dubbo&dubbo=2.6.0&generic=false&heartbeat=60000&interface=com.itheima.api.IPayService&methods=callbackPayment,createPayment&pid=13896&side=provider&timestamp=1584437727851) Failed to bind NettyServer on /192.168.21.1:20885, cause: Failed to bind to: /0.0.0.0:20885

 

See Code: QQ mailbox [Code -rocketMQ, Dubbo] order creation and payment code

Local address: D: \ downloads \ java \ dark horse \ data - a comprehensive anatomy RocketMQ and project combat \ RocketMQ \ Code \ shop-project

 

Message in other ways

https://www.bilibili.com/video/av71654125?p=19

Payment processing flow analysis callback (record video)

https://www.bilibili.com/video/av71654125?p=79

Micro-payment processing service orders - send a problem, but the consumer should be able to, simply send the first practice and consumption data using the data in this case

https://www.bilibili.com/video/av71654125?p=82

 

 

Published 73 original articles · won praise 1 · views 10000 +

Guess you like

Origin blog.csdn.net/wenxi2367/article/details/104932341