Skip to content

Commit

Permalink
paypal button framework elplatt#253
Browse files Browse the repository at this point in the history
paypal button framework elplatt#253
  • Loading branch information
chris18890 committed Apr 28, 2014
1 parent 0210e53 commit 84b6c3d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions crm/modules/paypal_payment/paypal_payment.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,12 @@ function paypal_payment_form_alter(&$form, $form_id) {
}
}
}
}
if ($form_id === 'member_add') {

}
if ($form_id === 'register') {

}
return $form;
}
Expand Down Expand Up @@ -640,3 +646,29 @@ function command_paypal_payment_contact_delete () {
function theme_paypal_payment_admin () {
return '<p><a href=' . crm_url('paypal-admin') . '>Administer</a></p>';
}

/**
* Return themed html for a paypal payment button.
* @param $cid The cid to create a button for.
* @param $params Options for the button.
* @return A string containing the themed html.
*/
function theme_paypal_payment_button () {
require_once ("expresscheckout.php");
$html = <<<EOF
<form action='modules/paypal_payment/expresscheckout.php' METHOD='POST'>
<input type='image' name='submit' src='https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif' border='0' align='top' alt='Check out with PayPal'/>
</form>
EOF;
return $html;
}

/**
* Return themed html for a paypal subscription button.
* @param $cid The cid to create a button for.
* @param $params Options for the button.
* @return A string containing the themed html.
*/
function theme_paypal_subscription_button ($cid, $params = array()) {

}

0 comments on commit 84b6c3d

Please sign in to comment.