PayPal's JavaScript buttons are simple, but using Couch's built in functions means @KK has already taken care of the IPN and a lot of other details for you.
Following up on @GoingMarryAsap's idea, I think it's better to modify the Couch Cart add-on by adding a new parameter. With this modification, you would add the parameter 'seller' to the pp_payment_gateway tag to change the merchant id. If 'seller' is not specified, the email from the config file would be used.
Now, I'm just winging it. This is a pretty simple modification, but I don't have a Couch Cart set up for testing. If you want to try it out, you can let me know if it works.
Change couch/addons/cart/cart.php to cart-old.php (in case you want to revert to the original). Put this file in the couch/addons/cart/ folder and rename it to cart.php to activate it.
Like I said, this is completely untested. I feel a little crummy not having tested it, but setting up the test would take me a lot longer than the modification did. But it looks like it should work...
Let me know.
Following up on @GoingMarryAsap's idea, I think it's better to modify the Couch Cart add-on by adding a new parameter. With this modification, you would add the parameter 'seller' to the pp_payment_gateway tag to change the merchant id. If 'seller' is not specified, the email from the config file would be used.
- Code: Select all
<cms:if k_success >
<cms:pp_payment_gateway
shipping_address="<cms:if "<cms:pp_count_shippable_items />" >1<cms:else />0</cms:if>"
empty_cart='0'
seller="<cms:show pp_email />"
/>
</cms:if>
Now, I'm just winging it. This is a pretty simple modification, but I don't have a Couch Cart set up for testing. If you want to try it out, you can let me know if it works.
Change couch/addons/cart/cart.php to cart-old.php (in case you want to revert to the original). Put this file in the couch/addons/cart/ folder and rename it to cart.php to activate it.
Like I said, this is completely untested. I feel a little crummy not having tested it, but setting up the test would take me a lot longer than the modification did. But it looks like it should work...
