Welcome Guest, Not a member yet? Register   Sign In
Paypal_Lib implementation
#1

[eluser]Ji31[/eluser]
Hi,

I'm trying to implement Paypal_Lib but I don't know how to manage this.

I have the function add() which add the post onto my site. Than I need customer to pay for this post.

My function is:
Code:
function add(){

  ...here is some validation of the adding form...

if($this->validation->run() == FALSE)
{
   $this->load->view('add_view');
}else{

  ...here I save the post and get the $id of the post...

//PayPal
  $this->load->library('Paypal_Lib');
  $this->paypal_lib->add_field('business', '[email protected]');
  $this->paypal_lib->add_field('return', site_url('paypal/success'.$id));
  $this->paypal_lib->add_field('cancel_return', site_url('paypal/cancel'));
  $this->paypal_lib->add_field('notify_url', site_url('paypal/ipn'));
  $this->paypal_lib->add_field('item_name', 'Adding job');
  $this->paypal_lib->add_field('item_number', $id);
  $this->paypal_lib->add_field('amount', $price);
    
  $this->paypal_lib->button('Click here to pay now (please)!');
  $this->paypal_lib->paypal_form();
//End of PayPal

}

And my problem is, that I get the blank page! No Paypal is showed, just blank page (even in the source of page). So surely I'm wrong somewhere in the Paypal_Lib implementation....

What I have to do to show the form?

Thanks


Messages In This Thread
Paypal_Lib implementation - by El Forum - 07-29-2007, 10:00 AM
Paypal_Lib implementation - by El Forum - 07-29-2007, 10:06 AM
Paypal_Lib implementation - by El Forum - 07-29-2007, 10:11 AM
Paypal_Lib implementation - by El Forum - 07-31-2007, 03:45 PM
Paypal_Lib implementation - by El Forum - 07-31-2007, 07:02 PM
Paypal_Lib implementation - by El Forum - 08-18-2007, 03:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB