[ic] Finally, PayPal works!

Your Name interchange-users@icdevgroup.org
Mon Mar 17 00:04:00 2003


     I was finally able to integrate PayPal into the Interchange Cart.
All you have to do is change two files, slightly!

     First edit,
/catalogs/yourcatalogsname/include/checkout/payment_select

Back it up,
Then change this section:
              [if variable POSTAL_ACCEPTED]
              <option [selected mv_order_profile postal]
value="postal">Postal Billing
              [/if] 


To this:
              [if variable POSTAL_ACCEPTED]
              <option [selected mv_order_profile postal]
value="postal">PayPal or Postal Billing(or whatever you want this
payment method to say.)
              [/if]


Save it.

Next find,
/catalogs/yourcatalogname/etc/receipt.html

Back it up!
Then find this section:
<tr>
	<th align=right>
		Payment Method
	</th>
	<td>
	[value mv_payment]
	</td>
</tr>

And change it to this:
<tr>
	<th align=right>
		Payment Method
	</th>
	<td>
	[value mv_payment].  <form
action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="you@yourpaypalemail.com">
<input type="hidden" name="item_name" value="Payment for [value
mv_order_number]">
<input type="hidden" name="item_number" value="[value mv_order_number]">
<input type="hidden" name="amount" value="[total-cost]">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="submit" value="Or, pay instantly with PayPal!" border="0"
name="submit" alt="buy now">
</form>
	</td>
</tr>


The resulting page looks like the one at,
http://www.welshsgifts.com/example.html

That's it!

Hope this helps.