dougudu3564 2014-09-27 16:46
浏览 25
已采纳

通过paypal接收用户邮件

I need to make a api that after the user purchases and e-book through paypal, the webpage creates an user account and random password.

I was wondering if this is correct https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/paymentdatatransfer/

Or is there a better approach.

Thank you

  • 写回答

1条回答 默认 最新

  • douyamitong57935 2014-09-28 16:07
    关注

    Instead of using the PDT you can make use of the PayPal IPN . IPN works independently of the return page .Once the payment is completed PayPal sends the IPN to your IPN server . In case of the PDT think of the scenario where the user closes the PayPal's "thank you" page after the Payment completion and he will never come back to your return url ,so you will not be able to generate the username and password for him .

    But in case of IPN , you will receive the IPN ,once they complete the payment and you need not worry about them to come to your return url ( if in case someone misses ).

    You can find the IPN related documentation here: https://developer.paypal.com/webapps/developer/docs/classic/ipn/integration-guide/IPNIntro/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类