- REST api
- for user
- [post] api/v1/payments/charge
- @params
- order_id
- payment_method
- payment
- @params
- [post] api/v1/payments/charge/:id/refund
- [post] api/v1/payments/charge
- for payment service callback
- payments/<payment_service (alipay .etc)>/notify
- for user
- model layer
- order
- charge (order_id, amount, currency, subject, body, status, extra::json)
- refund (charge_id, amount, reason, extra::json)
- charge (order_id, amount, currency, subject, body, status, extra::json)
- order
转载于:https://my.oschina.net/xieyunzi/blog/420348