Jump to content
Larry Ullman's Book Forums

Docsam

Members
  • Posts

    4
  • Joined

  • Last visited

Docsam's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I received an email from Paypal that I need to update from http 1.0 to http 1.1 for the ipn script? Any thoughts on what to do? Here is the message: "n a bulletin dated October 18, 2011, we announced that we were going to expand the number of IP addresses for www.paypal.com to improve our site’s performance, scalability and availability. As part of this transition, we planned to discontinue support for HTTP 1.0 protocol startingOctober 7, 2013. We have recently identified that this change may impact the ability of some of our merchants to perform IPN (Instant Payment Notification) post-back validation or PDT (Payment Data Transfer) posts to www.paypal.com and ipnpb.paypal.com. This happens when the IPN or PDT scripts use HTTP 1.0 protocol and do not include the “Host: www.paypal.com” or “Host:ipnpb.paypal.com” header in the HTTP request. " Thanks, Sam
  2. Hi Larry, Your book is incredibly useful. I created a website for my staff to access pdfs of the different forms we use for an animal hospital. Occasionally, we change the forms content and will need to re-upload the pdf of it. I didn't see a way in your book to delete the pdf if it has already been uploaded. Any recommendations? Thanks, Sam
  3. Yes, that sounds like it will work. if ( isset($_POST['payment_status']) && ($_POST['payment_status'] == 'Completed') && ($_POST['receiver_email'] == 'dream_1299424800_biz@mpvets.com') && ($_POST['mc_gross'] == 0.00) && ($_POST['mc_currency'] == 'USD') && (!empty($_POST['txn_id'])) && ($2week == '0') ) { //"add 2 weeks subscription" to expiration date ......... if ( isset($_POST['payment_status']) && ($_POST['payment_status'] == 'Completed') && ($_POST['receiver_email'] == 'dream_1299424800_biz@mpvets.com') && ($_POST['mc_gross'] == 10.00) && ($_POST['mc_currency'] == 'USD') && (!empty($_POST['txn_id'])) && ($2week == '1') ) { //"add 1 month" to expiration date Is that what you mean? Thanks, Sam
  4. Hi Larry, Your book has enabled a veterinarian to learn php! Talk about teaching an old dog new tricks... My question is how would I modify the ipn "check values" code if I wanted to offer a two week free trial subscription before charging monthly? I know how to set up the subscribe button in paypal but not this part in your code. Thanks in advance. I am not sure how this should be handled because initially the 'mc_gross' would be zero but eventually would equal the monthly subscription amount... // Check for the right values: if ( isset($_POST['payment_status']) && ($_POST['payment_status'] == 'Completed') && ($_POST['receiver_email'] == 'dream_1299424800_biz@mpvets.com') && ($_POST['mc_gross'] == 10.00) && ($_POST['mc_currency'] == 'USD') && (!empty($_POST['txn_id'])) ) { Thanks, Sam
×
×
  • Create New...