Welcome Guest, Not a member yet? Register   Sign In
Help w/ form_open and PayPal IPN
#5

[eluser]CroNiX[/eluser]
[quote author="niclake" date="1406830671"]Do I dump this in a PHP block at the start of this particular page that's loading w/ that URL?

Also, PayPal is returning 39 pieces of info, and I only need those 5. Any clue how to snatch those?

Thanks for your help!
[/quote]
Yes, just put it on the page that has the url...but if you only need 5 pieces, it might be better doing:

Code:
$paypal_data = array(
    'payer_id'       => $this->input->get('payer_id', TRUE),
    'amount'         => $this->input->get('amount', TRUE),
    'payment_type'   => $this->input->get('payment_type', TRUE),
    'payment_status' => $this->input->get('payment_status', TRUE),
    'custom'         => $this->input->get('custom', TRUE)
);

Then you can just insert it into the database.
Code:
$this->db->insert('table', $paypal_data);


Messages In This Thread
Help w/ form_open and PayPal IPN - by El Forum - 07-31-2014, 08:24 AM
Help w/ form_open and PayPal IPN - by El Forum - 07-31-2014, 10:07 AM
Help w/ form_open and PayPal IPN - by El Forum - 07-31-2014, 11:00 AM
Help w/ form_open and PayPal IPN - by El Forum - 07-31-2014, 11:17 AM
Help w/ form_open and PayPal IPN - by El Forum - 07-31-2014, 11:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB