dongyuan9149 2015-11-25 18:03
浏览 38

用户取消事务时删除临时数据

I have a form on a website that users fill in to subscribe for a service and then a Paypal button for the users to pay for that service. Before sending the users to Paypal's website, I save the info that the user has submitted in temporary table in my database. My question is this:

How would I know what temporary data to delete if the user cancels the transaction by clicking on the Cancel button on Paypal? I have no information about what the user has submitted once I'm on Paypal website.

Thank you

  • 写回答

1条回答 默认 最新

  • doushao8421 2015-11-25 18:36
    关注

    you'll probably want to setup an IPN so you get pinged on a cancellation; in-turn know what to delete in the db.

    Here is a link on setting it up

    Information on it

    Sample Code

    1. A Simple road is to use the PayPal notification of cancellation via email for reference of what was cancelled.
    2. Run a download history report and view the 'type'column where you'll see subscriptions
    评论

报告相同问题?

悬赏问题

  • ¥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 可否在不同线程中调用封装数据库操作的类