Addon Info

Developer: Conflux Group, Inc.

License: View

$15.00

Payup

Add PayPal Buy It Now and Add to Cart buttons to your MojoMotor pages.

Overview

With really simple syntax, you can now incorporate PayPal's Website Payments Standard into your layouts in MojoMotor. The tags take care of it all, from setting up the form, switching between sandbox and live servers, defining hidden fields for passing data to Paypal, and creating buttons using PayPal provided images or your own.

Example

//first you put in the start tag, which opens up a new PayPal form

{mojo:payup:start testing="no"}

//now add some fields, you can even include Outfielder fields if you have our

//Outfielder addon installed as well

{mojo:payup:add_field name="amount" outfield_value="price" hidden="yes"}

{mojo:payup:add_field name="notify_url" value="http://yourdomain/notify" hidden="yes"}

{mojo:payup:add_field name="return" value="http://yourdomain/purchase-complete" hidden="yes"}

{mojo:payup:add_field name="cancel_return" value="http://yourdomain" hidden="yes"}

{mojo:payup:add_field name="business" outfield_value="business" hidden="yes"}

{mojo:payup:add_field name="item_name" value="An Item Name" hidden="yes"}

//then we add a button. here, we've specified our own, you can also add
//any necessary classes or an id
{mojo:payup:add_button image="/assets/images/buynow.jpg" class="buybutton"}

//last, we close up the form
{mojo:payup:end}

{mojo:payup:start testing="no"}
 
{mojo:payup:add_field name="amount" outfield_value="price" hidden="yes"}
{mojo:payup:add_field name="cmd" value="_xclick" hidden="yes"}
{mojo:payup:add_field name="rm" value="2" hidden="yes"}
{mojo:payup:add_field name="notify_url" value="http://sales.mojoaddons.com/notify" hidden="yes"}
{mojo:payup:add_field name="return" value="http://mojoaddons.com/index.php/page/purchase-complete" hidden="yes"}
{mojo:payup:add_field name="cancel_return" value="http://mojoaddons.com" hidden="yes"}
{mojo:payup:add_field name="business" outfield_value="business" hidden="yes"}
{mojo:payup:add_field name="item_name" value="MojoAddons Addon" hidden="yes"}
{mojo:payup:add_field name="item_number" outfield_value="item_number" hidden="yes"}
 
{mojo:payup:add_button image="/assets/images/buynow.jpg" class="buybutton"}
{mojo:payup:end}