paypal-ipn

How to password protect an entire website but allow public access to 1 specific file

 ̄綄美尐妖づ 提交于 2019-12-07 02:54:37
问题 I've created an e-commerce site that uses paypal to accept payment. I am in the testing phase so I have password protected the entire site using htaccess. The trouble is that I am using IPN to verify PayPal payments and therefor my IPN script needs to be publicly accessible so that PayPal can communicate with it. Is there a way to password protect the entire website except allow public access to 1 script file? (my ipn script file) I'm using PHP and here is my .htaccess that I'm using to

Identify which encoding PayPal IPN uses?

偶尔善良 提交于 2019-12-07 01:07:37
问题 I am having some issues with PayPal IPN . The documentation uses ASCII encoding. I am using UTF-8 . It works fine but as a rarest case I get some random characters. As far as I know the Paypal account can be setup for different encoding. Is there any way to identify that?. Or is there a standard way of handling all the cases. 回答1: You can set the encoding for IPN via Profile > My selling tools > PayPal button language encoding > More Options. (direct link) The IPN message itself contains a

New PayPal Sandbox, Where to input IPN url in sandbox “Test Site” UI

不羁的心 提交于 2019-12-07 00:48:26
问题 In another post (closed as not a real question ) the OP did a poor job of asking the question I would like very much to know the answer to. Can you or can you NOT specify an IPN url within a "Test Site" under the New Sandbox UI . In the old Sandbox (exactly as you would for a live account) you simply entered the URL to the desired IPN listener under " Profile / My Selling Tools ". In the new Sandbox however, there exist no such sub menus under the Profile menu and I can't find any mention of

Paypal IPN Valid in sandbox INVALID when live

假装没事ソ 提交于 2019-12-06 21:57:33
I have been trying to implement the paypal IPN system into a clients site. Whenever I test this script in the IPN sandbox tool, it is validated and my actions are performed, however when I move it live, the IPN is returned as INVALID. I am at a wall here, thank you in advance for your help. This is the IPN listener script: <?php /** * PayPal IPN Listener * * A class to listen for and handle Instant Payment Notifications (IPN) from * the PayPal server. * * https://github.com/Quixotix/PHP-PayPal-IPN * * @package PHP-PayPal-IPN * @author Micah Carrick * @copyright (c) 2011 - Micah Carrick *

Paypal IPN Script, issue with feof and fgets

喜你入骨 提交于 2019-12-06 16:28:19
问题 I've been having issues with my Paypal IPN listener script for a couple of days now. For those of you who are unfamiliar with the Paypal IPN system, basically Paypal sends your script with a message about the transaction, which you send back with a couple of bits added. If Paypal receives the correct reply, it'll reply with 'VERIFIED', and if not it'll say 'INVALID'. I initially thought that the problem I was experiencing was with the 'fsockopen' command: $fp=fsockopen('ssl://sandbox.paypal

PayPal IPN not updating MySQL database

时光总嘲笑我的痴心妄想 提交于 2019-12-06 15:45:24
问题 please excuse my ignorance in advance, but i'm fairly new to php, and this one has been bugging me for a while. i'm trying to write an IPN script for an online store that sells individual items. once the payment is complete, the script will update the database and change the availability from "available" to "unavailable". the IPN seems to work fine apart from updating the database. i'm at my wits end now as i can't see what is wrong with the script. here's what i have: curl_close($ch); if

PayPal Donate Button Redirect After Payment

与世无争的帅哥 提交于 2019-12-06 13:31:27
I know how to make a PayPal donate button redirect after payment, but what I need to know is, can you pass the payed amount through this redirection. So it would redirect to http://example.com/donate?amount=123 , is this even possible? Thanks! EDIT: It seems I can do it with IPN(?), I just don't know how to use paypal's IPN, can anyone help me? (yes I have read the docs, they are confusing) yes it is possible, like so: <!-- where you setup your paypal button : --> <input type="hidden" name="return" value="http://example.com/donate?amount=<?php echo $amount ?>" /> But (concerning security) It

Paypal subscriptions IPN - problem with users subscribing multiple times

妖精的绣舞 提交于 2019-12-06 11:31:49
I'm using paypal subscriptions and the instant payment notification (IPN) to handle subscribers on my site. For the most part it works well but there is one occasional problem I've encountered. Usually if a user cancels their subscription, I wait for the "end of term" (subscr_eot) notification before disabling access to my site. So if they prepay for the whole month, and then cancel right away, they still have access for the rest of the month (as it should be). But some users are having this problem where they: Cancel their subscription Before the "end of term" is reached they decide to re

Paypal IPN integration issues

不问归期 提交于 2019-12-06 09:52:12
I am trying to process the response from paypal on my page. I found this code from paypal documentation itself. When the response is valid, some parameters needs to be processed like txn_id and payment_completed . How should i do that?? the code is as follows string strSandbox = "https://www.sandbox.paypal.com/cgi-bin/webscr"; // string strLive = "https://www.paypal.com/cgi-bin/webscr"; HttpWebRequest req = (HttpWebRequest)WebRequest.Create(strSandbox); //Set values for the request back req.Method = "POST"; req.ContentType = "application/x-www-form-urlencoded"; byte[] param = Request

Paypal Webhook for Billing Agreement Payment received?

痞子三分冷 提交于 2019-12-06 09:45:35
Is there a webhook that fires when a billing agreement's payment is received? I created a billing plan and got a user to accept a billing agreement for recurring payments every month. When the billing agreement is executed, the webhook BILLING.SUBSCRIPTION.CREATED fires. Is there a webhook that fires when the payment is received every month? I've seen some older discussions about this and I'm not sure if it has been implemented yet or if I should still use IPN instead. This functionality is not yet supported but we are working with the internal teams actively to get this out of the door soon.