Posted By

creativeboulder on 04/10/11


php open api source PayPal invoicing

Versions (?)

Who likes this?

3 people have marked this snippet as a favorite


PHP Pay via Paypal (for most Open Source Invoicing Apps)

 / Published in: PHP


PHP Snippet for Paying via Paypal

This snippet is designed for most open source invoicing applications that you have control over the template setup. There multiple free or open source PHP applications that you can download server-side and implement this snippet at the bottom or very top of the template. Work great on MyClientBase.

  1. <?php
  2. $balance = invoice_balance($invoice) ;
  3. $invoicenum = invoice_id($invoice) ;
  4. $paypalemail = "[email protected]" ;
  5. $link = ("$paypalemail&amount=$balance&tax=0&item_name=Invoice $invoicenum");
  6. echo "<p>Pay securely with credit or debit card - <a href='$link' target=_blank >Click Here</p>";
  7. echo '<img src=""" border=0>';
  8. ?>

Report this snippet  

You need to login to post a comment.