paypal-ipn

PayPal IPN and fsockopen

烈酒焚心 提交于 2020-01-06 19:56:55
问题 Well I can't use cURL, the version installed on my web host that can't be changed doesn't support TLS. I'm trying to use fsockopen now to see if i'll be able to use IPN. It just hangs and browser throws connection timeout. PHP 7, open_ssl is enabled <?php header('HTTP/1.1 200 OK'); $item_name = $_POST['item_name']; $item_number = $_POST['item_number']; $payment_status = $_POST['payment_status']; $payment_amount = $_POST['mc_gross']; $payment_currency = $_POST['mc_currency']; $txn_id = $_POST[

PayPal IPN and fsockopen

穿精又带淫゛_ 提交于 2020-01-06 19:56:16
问题 Well I can't use cURL, the version installed on my web host that can't be changed doesn't support TLS. I'm trying to use fsockopen now to see if i'll be able to use IPN. It just hangs and browser throws connection timeout. PHP 7, open_ssl is enabled <?php header('HTTP/1.1 200 OK'); $item_name = $_POST['item_name']; $item_number = $_POST['item_number']; $payment_status = $_POST['payment_status']; $payment_amount = $_POST['mc_gross']; $payment_currency = $_POST['mc_currency']; $txn_id = $_POST[

Prevent form manipulation in PHP/JavaScript/JQuery (PayPal)

天大地大妈咪最大 提交于 2020-01-06 16:18:18
问题 I have a form where users can buy credits with PayPal or banktransfer as payment option. If a user selected "PayPal" as an option, the form data will be send to PayPal, using JQuery/JS: $(':radio').change(function () { var $this = $(this).val(); if ($this === 'pp') { $('#form').attr('action','https://www.paypal.com/cgi-bin/webscr'); } else { $('#form').attr('action',''); } }); The user can also choose how much he wants to pay, which also selects how many credits he'll get from it.

Send money to any PayPal account and receive payment notification

╄→гoц情女王★ 提交于 2020-01-05 12:32:17
问题 We are developing a website where people can use our tools to fundraise for their organization or cause. I was wondering if with paypal IPN I can send money directly to the person's PayPal account doing the fundraising. For example. User John Doe signs up on our website Website.com. As part of the signup process John Doe enters his PayPal email address he accepts payments with. He now has the page Website.com/JohnDoe to accept payments/donations from. Using IPN & PayPal payments pro can I

Send money to any PayPal account and receive payment notification

老子叫甜甜 提交于 2020-01-05 12:32:12
问题 We are developing a website where people can use our tools to fundraise for their organization or cause. I was wondering if with paypal IPN I can send money directly to the person's PayPal account doing the fundraising. For example. User John Doe signs up on our website Website.com. As part of the signup process John Doe enters his PayPal email address he accepts payments with. He now has the page Website.com/JohnDoe to accept payments/donations from. Using IPN & PayPal payments pro can I

Yet another Paypal Curl / SSL v3 Handshake Error - SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure

早过忘川 提交于 2020-01-05 08:52:42
问题 I know there are a number of people asking this question, but none of the solutions I've read to date have worked for me. A site with a Paypal IPN listener fails in the curl postback. Curl Error: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure My curl options look as follows: curl_setopt($ch, CURLOPT_URL, 'https://www.sandbox.paypal.com/cgi-bin/webscr'); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host: www.sandbox.paypal.com')); curl_setopt($ch, CURLOPT_HTTP

Correct paypal IPN variable for suspended subscriptions

别等时光非礼了梦想. 提交于 2020-01-03 10:29:58
问题 If a paying monthly subscriber has a credit card that expires, and paypal failed three times in trying to get the funds, then they are "suspended" by paypal. I'm trying to update my PHP script so that the correct change will happen in the database in this situation. I've studied the paypal documentation and can't find a clear answer on what IPN variable I should be using once a user's account has been suspended. Does anyone know which of the following is the correct variable and value to use?

Paypal IPN sending 'pending' with 'multi-currency' as reason?

半城伤御伤魂 提交于 2020-01-03 08:47:39
问题 I am using the Paypal IPN to take payments from my website. The website is only in development at the moment and so I set up a Sandbox site to test and I've been taking payments very successfully in GBP currency (my country of residences currency) with a test account registered in the UK. However, I want the site to detect a visitors country of origin and allow them to purchase in their own currency. So I accessed the site via a US based proxy. The site used dollars as the currency and I

Paypal PDT doesn't return “custom” value anymore (regression?)

烂漫一生 提交于 2020-01-03 05:05:20
问题 We use PDT's cmd=_notify-synch API to validate transactions when the customer is redirect back to our website after a payment. We pass a "custom" value in our Paypal buttons with a customer id, and we expect to get this value back. This worked fine for the past 5 years. Starting on or around 2018/10/19, the PDT API stopped returning the "custom" value that was passed in. This broke our payment flow. Not sure if anybody else ran into this issue, and/or if there's a workaround or a

Paypal subscriptions IPN - problem with users subscribing multiple times

烂漫一生 提交于 2020-01-02 18:22:12
问题 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