Table of Contents

Paypal

Payment bill

Info

  • Paypal is now supported in Simple Invoices 2010.2
  • This means that if you enable Paypal in Simple Invoices a PayPal image/link will be placed in the invoice PDF, that once clicked enables your customer to pay you via Paypal.
  • Also once the customers pays you via paypal the payment will be auto inserted into your Simple Invoices payments section
    • note: assuming your Simple Invoices is on a publicly accessible server.

Setup

  1. You need mod_rewrite enabled in your apache to make recurring invoice work
  2. If you want Paypal payments to be auto inserted in your Simple Invoices, your Simple Invoices install needs to be publicly accessible

How to

Enter your Paypal account details

  1. Edit your biller account in Simple Invoices and enter
    1. Your Paypal biller name in the 'PayPal business name' field, this is your PayPal email address, not your actual business name.
    2. In the 'PayPal notify url' field enter 'http://{yourserver.com}/{simple-invoice-folder}/api-paypal'
      1. Note: You need mod_rewrite enabled in your apache to make this work
      2. In the 'PayPal return url' field enter the url you want the customer redirected to
        1. This could be your website or a default thanks you message page etc..
    3. And click Save on the biller

Make the Paypal image/link appear in the invoice PDF

  1. Edit the Invoice Preference you will use
    1. Go the the Invoice Preferences page and edit the invoice preference you will use to create invoices
    2. in the 'Include online payment' fields select 'Paypal'
      1. by doing this - when you create an invoice using this invoice preference a Paypal image/link will appear at the bottom of the invoice - that links to the paypal.com payment page
    3. you may want to alter some of the text of the other invoice preferences fields to include reference to payment via Paypal

Testing

  1. Now once you create an invoice using your biller and the invoice preference setup in the previous steps when you view the PDF of the invoice there should be a PayPal image link
  2. If all your paypal details have been entered OK when you click on the link it will direct you to a Paypal.com page with the Invoice ID and Amount $ ready to be paid

Notes

  1. Assuming you have entered the notify url correctly in the biller setup once your customer pays you via Paypal it should auto input this payment in your Simple Invoices payments
  2. If you have any queries post in the discussions section below or in the forum

Discussion

berniberni, 2010/04/12 20:45

Hi, I have done exactly what is explained in this post http://www.simpleinvoices.org/wiki/paypal?s[]=paypal but the paypal process is not fully working.

I'm sure this is the problem:

In the 'PayPal notify url' field enter 'http://{yourserver.com}/{simple-invoice-folder}/api-paypal'

I don't have any api-paypal folder (or file) in my simple invoice folder.

It generate a 404 error and it is forwarded to my homepage (or a custon 404 error page) It doesn't LOG the payment in the invoice records.

Anyway, the payment, works fine.

justin, 2010/04/13 23:07

hey berniberni

i've replied to your forum post re this issue

cheers

justin

Jaro Kremina, 2010/05/17 20:57

When i click on the paypal button to pay on the PDF. It takes me to paypal. But it wants me to login.

If i log in, and then click on the paypal button from the pdf. it just takes me into my account and thats it. Nothing more. I did exactly what the instructions say on top. is there anything else I need to do. Did i miss something. Any help would be great. Thank you

justin, 2010/05/31 03:43

hey jaro

if you can post the url it send you to - just do a copy link from the PDF and i'll review

note: best bet is to post the question in our forum http://simpleinvoices.org/forum

cheers

justin

Tom Atlas, 2010/06/10 14:19

I am a hard-core developer, not so much yet with simple invoices, but I just got this working…let me answer a few questions (This is assuming you will be using 2010.2 BETA 7)

1. The PayPal “Business Name” really means your PayPal email address, not the actual name of the business

2. There is a bug in the system, in /templates/invoices/default/plugins/function.online_payment_link.php on Line 10 You simply need to add a ”?” after ”/xclick/” so the line should read: href=\”https://www.paypal.com/xclick/?business=”.urlencode($params['business'])…

NOT

href=\”https://www.paypal.com/xclick/business=”.urlencode($params['business'])…

I hope this helps!

justin, 2010/07/01 23:07

Thanks Tom

have added this to our todo list - should be fixed in the next release

Cheers

justin

  • Bookmark "wiki:paypal" at del.icio.us
  • Bookmark "wiki:paypal" at Digg
  • Bookmark "wiki:paypal" at Reddit
  • Bookmark "wiki:paypal" at StumbleUpon
  • Bookmark "wiki:paypal" at Facebook
  • Bookmark "wiki:paypal" at Twitter
 
 | wiki/paypal.txt · Last modified: 2012/01/26 02:59 by 199.27.128.235