How to Receive and Process Paypal IPN on a WordPress Page

I have created a WordPress Page template(listener.php) and then created a WP page using that template.The Page url is like: mysite.com/thank-you. Here is the code i have place in the template(listener.php)

 <?php         /*Template Name: ipnlistener*/ $  ch = curl_init();     curl_setopt($  ch, CURLOPT_URL, 'https://ipnpb.sandbox.paypal.com/cgi-bin/webscr');     curl_setopt($  ch, CURLOPT_RETURNTRANSFER, 1);     curl_setopt($  ch, CURLOPT_SSL_VERIFYHOST, 0);     curl_setopt($  ch, CURLOPT_SSL_VERIFYPEER, 0);     curl_setopt($  ch, CURLOPT_POST, 1);     curl_setopt($  ch, CURLOPT_POSTFIELDS, "cmd=_notify-validate&" . http_build_query($  _POST));     $  response = curl_exec($  ch);     curl_close($  ch); echo "The Response From the Server is: " $  response; 

Now i go to developer.paypal.com and send and IPN using IPN Simulator pointing towards this page. After that i refresh/reload the listener page(mysite.com/thank-you) but it always show output The Response From the Server is: INVALID While it should be VERIFIED as a completed transaction IPN is being sent to it. I am not sure what is wrong, I have pointed the IPN towards right page and the code seems to be correct as well.

Does the Giant Elk receive a bonus Hooves attack vs a Prone foe?

The Giant Elk entry says:

Charge. If the elk moves at least 20 feet straight toward a target and then hits it with a ram attack on the same turn, the target takes an extra 7 (2d6) damage. If the target is a creature, it must succeed on a DC 14 Strength saving throw or be knocked prone.

Then in the attacks block, it states (bold for emphasis):

Hooves. Melee Weapon Attack: +6 to hit, reach 5 ft., one prone creature. Hit: 22 (4d8 + 4) bludgeoning damage.

So does the Elk receive a bonus Hooves attack vs a foe it just knocked prone? If so, would it receive this bonus attack against a prone foe every round it remained prone? One assumes that if the foe is not prone, the Elk would not get this attack at all with the way it is written.

Is this system for calculating the PC’s level to receive Lycanthrope, accurate or balanced?

It tells in the Monster Manual how a PC can become a Lycanthrope and what mechanical differences it makes, but as far as I can see it doesn’t say anything about what level the character should be at or how it would effect Combat Encounter Calculations.

Some of the ability’s a PC would get become redundant at high levels but would be completely broken at lower levels (most notable it’s damage immunity’s), Is there a Rule of Thumb or maybe something written in one of the supplement books that would determine what effects lycanthropy would have at different levels.

Some of the things I’ve calculated are…

  • A PC character can gain access to Polymorph at 7th level, since a lycanthrope has a limited polymorph as one of its abilites, combining that with the other advantages it gets would indicate the Level 7 would be the best level for Were-PC.
  • Monk’s and Circle of the Moon Druids gain access to their respective “your attacks count as magical for the purposes of overcoming resistances” meaning they’ll start facing creatures with similar damage immunites to the lycanthrope , combining that with the other advantages it gets would indicate the Level 7 would be the best level for Were-PC.
  • According to some brief CR calculations (using the DMG) the higher CR Lycanthropes seem like even fights with a 7th or 8th level Party, while lower CR’s look good for a 4th or 5th level party so depending of the Lycanthropy, a Were-PC would be fine anyway between 4th to 9th Level PC.

Based of the Calculations above I assume that creating a Were-PC at level 10 or Higher is fine (If the Player want’s it), but below level 5 is too powerful, between Levels 5 and 10 a player’s Level should match or surpass the CR of the Lycanthrope + 5 in order to have it, otherwise it might be too powerful.

This is all assuming the PC “embraces the curse” and the DM allows the player to use it freely. Assuming the opposite you could subtract 5 from the players level when using the calculations above.

As for Calculating Combat Encounters a PC should be considers 1 level higher than their player level when working out Combat encounters until they become level 11 or higher in which case treat them like a normal PC

Does all that make sense? Is it a good system or is there some fact that I’m missing? Does this adequately answer What level should a Lycanthrope PC be? Would any of this be different if you where creating a character at a different level?

Is it possible to only receive in-app codes (no text messages) in authy?

I’ve heard that in-app codes are generally more secure than codes sent over SMS, which can theoretically be intercepted. If this is true, then is there any way to ensure that authy only delivers codes to you through the authy app, rather than SMS/text message? On a similar note, is it possible to force authy to only use touch ID for unlocking the app, instead of giving you the option of using both touch ID and a PIN?

Is it ok to assume a user has opted-in to receive emails in an application where the main purpose is sending notifications [on hold]

I’m working on a web application where the main purpose/functionality is notifying users when there have been changes to regulations in a particular industry.

The application is subscription based, i.e. you have to pay for an account and using it is a choice. Any email addresses for accounts we hold are active users and we do not harvest this data from anywhere. So all email addresses we have are for real users who actively use the software.

We are designing a setup wizard which allows users to set preferences on what information they receive.

One of the settings is yes or no as to whether the application should send notifications via email. This raised debate as to what the default setting should be.

The argument for “no” was that users should explicitly give their permission to receive automated emails and therefore this was the correct default.

The argument for “yes” was that the users have implied consent because they are using an application whose sole purpose is to inform them about changes, and email delivery is the primary way of doing this.

The application is still usable if the user doesn’t receive emails because the data which is present in the emails is visible inside a web-based interface. The disadvantage of using the application in this way is that – unless the user logs in – they will not necessarily be aware of any updates. Therefore defaulting email opt-in is preferable.

The pre-sale marketing material for the application makes it clear that email delivery is the main delivery method for the information and getting it directly to your inbox is an advantage of using the system.

What are people’s thoughts on this? We are based in the UK but deal with customers worldwide. Is this covered or referred to by GDPR?

Error adding ppa repository, gpg: keyserver receive failed: Connection timed out

I am trying to install open source graphics drivers for AMD, but the sudo add-apt-repository ppa:oibaf/graphics-drivers command times out while receiving gpg keys from keyserver. I know it is due to blocking of port 11371. I even received the key by using port 80. But even then this command requests for the same key. I have also tried to unblock 11371 port using ufw with no help. What to do? Can I tamper the code of adding this repo, so that it does not request for the key, as I already have it?

Executing: /tmp/apt-key-gpghome.K797DqgsU8/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 5ABCE68FF4633EA42E219156957D2708A03A4626 gpg: keyserver receive failed: Connection timed out

How to Receive XML Post Data in Magento2?

I want to receive and validate xml object from third party application in Magento2.

How I can write custom endpoint and response for this.

Xml payload:

<myitems> <item>  <info1></info1>  <info2></info2>  <info3></info3>  <info4></info4> </item> <item>  <info1></info1>  <info2></info2>  <info3></info3>  <info4></info4> </item> </myitems> 

If anybody can share tips to write custom api in Magento2 to handle xml post and response.

How to fix send receive error outlook 365? | +1-866-535-7333 in USA

The send receive error outlook 365 has become a common error nowadays. And to fix it takes time as it involves many techniques. To help you not waste your time we have found ways to fix the problem. It is obviously a great ultimatum to repair the outlook PST but still, we would fix it.

We all know that the MS outlook provides support to many functions and is so essential for emailing the…

How to fix send receive error outlook 365? | +1-866-535-7333 in USA