douyou7072 2015-07-10 08:37
浏览 57

PayPal PHP自适应Paypal IPN通知

I'm currently using https://github.com/paypal/adaptivepayments-sdk-php to try to do a Delayed Chain Payment through Paypal , everything seems to work as intended but i realised the notify url doesn't seem to be triggering after the payment is authorised,hence i can't log the payment transaction details into db if the user doesn't go back to the return url.

$payRequest = new PayRequest(new RequestEnvelope("en_US"), 'PAY_PRIMARY', $this->input->post('cancel_return'), $this->input->post('currency_code'), $receiverList, $this->input->post('return').'?payKey=${payKey}');

$payRequest->ipnNotificationUrl = site_url('ipnlistener');

My ipnlistener currently just inserts a row of dummy data into the database, it seems to be working as intended when i access it manually. Any idea what might be the issue ? or any workarounds i could attempt ?

added payRequest data

string(545)"requestEnvelope.errorLanguage=en_US&actionType=PAY_PRIMARY&cancelUrl=http%3A%2F%2Flocalhost%2Fweb%2Fclient%2Fmakepayment%2Frere¤cyCode=SGD&ipnNotificationUrl=http%3A%2F%2Flocalhost%2Fweb%2Fclient%2Ftesto&receiverList.receiver(0).amount=8934.26&receiverList.receiver(0).email=test%40hotmail.com&receiverList.receiver(0).primary=1&receiverList.receiver(1).amount=7344&receiverList.receiver(1).email=testtest%40hotmail.com&returnUrl=http%3A%2F%2Flocalhost%2Fweb%2Fclient%2Fmakepayment%2Frere%3FpayKey%3D%24%7BpayKey%7D"

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
    • ¥50 有数据,怎么用matlab求全要素生产率
    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题
    • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
    • ¥15 YoloV5 第三方库的版本对照问题
    • ¥15 请完成下列相关问题!
    • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
    • ¥15 求daily translation(DT)偏差订正方法的代码
    • ¥15 js调用html页面需要隐藏某个按钮