Showing posts with label paypal. Show all posts
Showing posts with label paypal. Show all posts

Thursday, May 02, 2013

e-Commerce PCI compliance

Merchant accounts like Authorize.net are now requiring customers to become PCI compliant for e-commerce. Even if you are using an event registration software like event espresso for wordpress you will be required to go through this process.

My advise - use a HOSTED checkout .....

There are really only 2 ways to become PCI compliant. Here are the run downs of each.

  1. Use a hosted checkout like Authorize.net SIM or Paypal Standard   Customer goes outside of the website to submit their information then gets returned to the website. This method is the most cost effective. It allows you to keep the cheaper hosting and not pay for services like security metrics.

    Here is a picture that explains it.
    http://developer.authorize.net/api/howitworks/sim/
  2. Change hosting to a Virtual Private Server or Dedicated host which is severe overkill for the online business you are running. Generally it costs between $50-$75+ for a VPS and even more for a Dedicated server.  Along with the different server we would need to purchase and install a wild card SSL for all services (email, ftp, etc) around   ~$100.

    Then once all of that is completed we run security metrics scans (these take 12ish hours) review the issues and work with the hosting support team to complete the changes. Generally there are several rounds of back and forth until its compliant. The PCI compliance scan rules to change occasionally to keep up with software updates and security holes.

 As you can see option 2 becomes expensive quickly so I wanted you to be able to make an informed decision.

The question really becomes how much does hosted checkout bother you and your customers?
And are we selling enough to make this worth while?


 Of course all of this is for the website, if you process and store credit cards in house you will need to be PCI compliant there as well.


Stumble Upon CodePyro

Thursday, April 05, 2012

PHP simple Paypal IPN

To setup a quick Paypal IPN

This quicky uses the code from
http://code.google.com/p/paypal-ipn-class-php/

Download code; unzip; place in site;

Next create your Paypal Button form. Make sure it Posts to paypal.php.
Use paypal.php?sandbox=1 to test in the sandbox

<form action="paypal.php?sandbox=1" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="PAYPAL EMAIL ADDRESS">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Stuff">
<input type="hidden" name="item_number" value="123">
<input type="hidden" name="amount" value="2.99">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="1"> 
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>


Next make sure you change the 2 settings for the emails and ADD the line for the SMTP server



 define('EMAIL_ADD', 'PAYPALEMAIL'); // For system notification.
 define('PAYPAL_EMAIL_ADD', 'PAYPALEMAIL');
ini_set("SMTP", "mail.MAILSERVER.com");


Then down on line 96ish add the fields from your specific form to look like
$p->add_field('business', PAYPAL_EMAIL_ADD); //don't need add this item. if your set the $p -> paypal_mail.
            $p->add_field('return', $this_script.'?action=success');
            $p->add_field('cancel_return', $this_script.'?action=cancel');
            $p->add_field('notify_url', $this_script.'?action=ipn');
            $p->add_field('item_name', $_POST['item_name']);
            $p->add_field('item_number', $_POST['item_number']);
            $p->add_field('lc', $_POST['lc']);
            $p->add_field('amount', $_POST['amount']);
            $p->add_field('cmd', '_xclick');
            $p->add_field('rm', '2');    // Return method = POST
 


Stumble Upon CodePyro