English 中文(简体)
How to link username in site to PayPal information email?
原标题:

It s not a problem but i don t know how to do this; let s say that I have a sign up form with some fields: username, password, email, as you know the user clicks on the BUY BUTTON and pay s up.

Well, how can I know the username that just made the payment, I mean how can I link those two things together, one idea it s to use the email address, but mose of the people sign up with different email addresses, mabe they have a different paypal address...you know...I need this information because I need a way to activate the account.

And I also need to know, if the user canceled a subscription will paypal post a message to my IPN link?

最佳回答

I suggest you use the following PHP script for easy integration with PayPal s service (assuming you re using PHP): http://www.micahcarrick.com/04-19-2005/php-paypal-ipn-integration-class.html

If you do, the e-mail you will be looking for will be supplied in

$paypal->ipn_data[ payer_email ]

(again, assuming that $paypal is your object of the paypal_class class)

Obviously you have to follow the setup steps first. I suggest using the example script. It is really easy to do - in only four steps.

问题回答

I suggest you read the official paypal documentation about IPN and recurring payments.

PayPal issues a IPN for every event that occurs to the user subscription, for example:

subscr_signup subscr_eot subscr_cancel subscr_failed

About the parameter, you can use a parameter named "custom" to pass a value, for example the user id or email, and that parameter will be sent you in every IPN.

Here are implementations of the PayPal IPN in both C# and VB:

http://www.xdevsoftware.com/PPIPNDesc.aspx

Here s an account of how I incorporated it into a PayPal subscriptions scenario:

http://www.codersbarn.com/post/2008/07/10/ASPNET-PayPal-Subscriptions-IPN.aspx





相关问题
2. 提交多件物品,一劳永逸地与营地一起支付

我有一些销售物品,有2和3级的定制。 一旦安装了用户,就会增加我的现场车。 问题在于,如何把每一件物品送到检查时支付费用? 唯一发现的法典......

PHP - Paypal product timeout

I have finally got my paypal system working using IPN and a reservation system to ensure that two people do not buy the same product. The problem is, the reservations last for 10 mins on my ...

Paypal not picking up shipping?

this is strange, for some reason this paypal isn t picking up my shipping_1 value, yet I have done another form similar, and it goes through ok? I have no idea what s wrong with it.. <form target=&...

PayPal Website Payment Pro / Payflow Pro Difficulties

Okey, I m using PHP/SQL for my built web-cart. I also have the required paypal account (business) so I have an API authentication. I also made a sandbox account and got an API authentication there too....

How to link username in site to PayPal information email?

It s not a problem but i don t know how to do this; let s say that I have a sign up form with some fields: username, password, email, as you know the user clicks on the BUY BUTTON and pay s up. Well, ...

About paypal express checkout api

In this picture,there are 3 main steps:SetExpressCheckout,GetExpressCheckoutDetails and DoExpressCheckoutDetails,I m now sure SetExpressCheckout is to be called by myself,what about ...

Does HttpWebRequest send 200 OK automatically?

Background: I am implementing Paypal IPN handler. This great article on Paypal states that I am required to send a 200 OK back to Paypal after I read the response. The processing of IPN request is ...

热门标签