Welcome Guest, Not a member yet? Register   Sign In
Paypal Registration Application
#12

[eluser]ontguy[/eluser]
You can use the custom field in your form and included the details necessary to identify the order/purchase.

controller
Code:
function form_gen ()
{
$custom_string = $order_id:$user_id;
$this->paypal_lib->add_field('custom', $custom_string); // <-- Verify return

$this->paypal_lib->add_field('return', site_url('checkout/success')); //you could use this to say the order is in progress
$this->paypal_lib->add_field('cancel_return', site_url('checkout/cancel')); //redirect to this url when cancel on the paypal "side"
$this->paypal_lib->add_field('notify_url', site_url('checkout/ipn')); // <-- IPN url
}

function ipn () {
list($user_id, $order_id) = explode(":", $this->paypal_lib->ipn_data['custom']);
then update the database record
etc


Messages In This Thread
Paypal Registration Application - by El Forum - 08-25-2008, 03:30 PM
Paypal Registration Application - by El Forum - 08-25-2008, 04:37 PM
Paypal Registration Application - by El Forum - 08-25-2008, 04:42 PM
Paypal Registration Application - by El Forum - 08-28-2008, 12:07 PM
Paypal Registration Application - by El Forum - 08-28-2008, 01:24 PM
Paypal Registration Application - by El Forum - 08-28-2008, 02:15 PM
Paypal Registration Application - by El Forum - 08-28-2008, 02:25 PM
Paypal Registration Application - by El Forum - 08-28-2008, 02:27 PM
Paypal Registration Application - by El Forum - 08-28-2008, 02:28 PM
Paypal Registration Application - by El Forum - 08-28-2008, 02:38 PM
Paypal Registration Application - by El Forum - 08-28-2008, 02:41 PM
Paypal Registration Application - by El Forum - 08-28-2008, 06:29 PM
Paypal Registration Application - by El Forum - 08-28-2008, 08:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB