sarices
V2EX  ›  问与答

支付宝集成问题return和notify的分别?

  •  
  •   sarices · Dec 20, 2011 · 5348 views
    This topic created in 5278 days ago, the information mentioned may be changed or developed.
    return的时候做处理还是notify的时候做处理?
    7 replies    1970-01-01 08:00:00 +08:00
    xflykkk
        1
    xflykkk  
       Dec 20, 2011
    notify的时候业务基本已经成功了,return做可能存在用户x掉页面。
    sarices
        2
    sarices  
    OP
       Dec 20, 2011
    @xflykkk 就是说,两个页面都要做逻辑处理,比如改变状态神马的?
    benzhe
        3
    benzhe  
       Dec 20, 2011
    银联在线是这样的,notify是银联服务器访问自己服务器(银联 -> 服务器),return是用户支付成功后跳转的页面(银联 -> 用户 ->服务器)。一般来说notify是必须先处理好的,return用于检查notify是否成功(如银联服务器暂时无法直接连通自己的服务器),若不成功return就负责处理

    支付宝的应该一样
    darcy
        4
    darcy  
       Dec 20, 2011
    不一定都能成功return回去,都做处理吧,notify是补救错失。
    heckthisplace
        5
    heckthisplace  
       Dec 20, 2011 via iPhone
    后者是post过去的,24小时没会通知多次,如果第一次没有成功的话。
    sarices
        6
    sarices  
    OP
       Dec 20, 2011
    @fim8 @darcy @benzhe 谢谢楼上各位
    blogcool
        7
    blogcool  
       Dec 20, 2011
    return 前台通知 (由用户触发)
    notify 后台通知(服务器通知,相关安全稳定)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5595 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 07:23 · PVG 15:23 · LAX 00:23 · JFK 03:23
    ♥ Do have faith in what you're doing.