Show me the money

1,974 views

Published on

Payment gateway integration in PHP - a quick start.

2 Comments
1 Like
Statistics
Notes
No Downloads
Views
Total views
1,974
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
82
Comments
2
Likes
1
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Show me the money

    1. 1. Show me the $money Payment gateway integration in PHP
    2. 2. Contents• What is a payment gateway?• Key terminologies• Types of payment processing• Available payment gateways• Sample integration• Resources
    3. 3. Payment Gateway• A payment gateway is an e-commerce application service provider that authorizes payments for e- businesses/online retailers.• Protects sensitive information (e.g. card number) by encryption• Bridges between customer and merchant as well as merchant and payment processor
    4. 4. Key Terminologies
    5. 5. Key Terminologies
    6. 6. Types of payment processing• On-site Payment Processing• Off-site Payment Processing
    7. 7. Types of payment processing• On-site Payment Processing: • Customer places an order in the merchant site • Customer provides payment details on merchant site • Merchant site calls payment gateway through API • Merchant site shows result of payment on the site • Merchant site processes the order
    8. 8. On-site payment processing
    9. 9. Types of payment processing• Off-site Payment Processing: • Customer places an order in the merchant site • Customer is taken to the payment processor site • Customer provides payment details on that site • Payment processor shows result of payment on the site • Customer is redirected back to merchant site • Merchant site processes the order
    10. 10. Off-site payment processing
    11. 11. Available payment gateways• 2CheckOut (2CO)• Paypal• Moneybookers/Skrill• Plimus• Authorize.net• Google Checkout• WorldPay
    12. 12. Sample 2CO integration• Required Information: • Account ID (sid) • Account secret • Order number • Order value • Order name
    13. 13. Sample 2CO integration - HTML
    14. 14. Sample 2CO integration (PHP)• /mycart • cart.php - Shows shopping cart • pay.php - Submits payment to processor • ipn.php - Validates payment
    15. 15. Sample 2CO integration (PHP)pay.php
    16. 16. Sample 2CO integration (PHP)verify.php
    17. 17. Resources• https://cms.paypal.com/us/cgi-bin/?cmd=_render- content&content_ID=developer/home• http://developers.2checkout.com/• http://developer.authorize.net/• https://github.com/phpfour/php-payment

    ×