I am not getting the shipping details at the time of checkout. I am have done payment integration using codeignitor. given are my code snippet
config/paypal.php // ------------------------------------------------------------------------ // Paypal library configuration // ------------------------------------------------------------------------
// Use PayPal on Sandbox or Live $config['sandbox'] = FALSE; // FALSE for live environment
// PayPal Business Email $config['business'] = '*****';
// If (and where) to log ipn to file $config['paypal_lib_ipn_log_file'] = BASEPATH . 'logs/paypal_ipn.log'; $config['paypal_lib_ipn_log'] = TRUE;
// Where are the buttons located at $config['paypal_lib_button_path'] = 'buttons';
// What is the default currency? $config['paypal_lib_currency_code'] = 'USD';
controller/pay.php
$price = $this->input->post('payble_amount'); $name = $this->input->post('customer_name'); $email = $this->input->post('customer_email'); $number = $this->input->post('customer_number'); $address = $this->input->post('customer_address'); //Set variables for paypal form $returnURL = base_url().'paypal/success'; //payment success url $cancelURL = base_url().'paypal/cancel'; //payment cancel url $notifyURL = base_url().'paypal/ipn'; //ipn url // Get product data $product = $this->Product->getRows($id); // Get current user ID from session $userID = '1'; // Add fields to paypal form $this->paypal_lib->add_field('return', $returnURL); $this->paypal_lib->add_field('cancel_return', $cancelURL); $this->paypal_lib->add_field('notify_url', $notifyURL); $this->paypal_lib->add_field('item_name', $product['report_title']); $this->paypal_lib->add_field('user_id', $userID); $this->paypal_lib->add_field('c_name', $name); $this->paypal_lib->add_field('c_email', $email); $this->paypal_lib->add_field('c_number', $number); $this->paypal_lib->add_field('c_address', $address); $this->paypal_lib->add_field('item_number', $product['id']); $this->paypal_lib->add_field('amount', $price); // Load paypal form $this->paypal_lib->paypal_auto_form();
and used paypal library.
... View more