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

[eluser]Unknown[/eluser]
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 author="CroNiX" date="1406829653"]I'm not sure this has anything to do with form_open. So once the info is submitted to paypal, paypal redirects to your site with a url containing a query string? And you want to get the values from that query string?

Code:
$this->load->helper('url');
$parsed = parse_url(current_url(), PHP_URL_QUERY); //get just query string from current url

if ( ! empty($parsed))
{
  //parse the query string into an array and store in $parts
  parse_str($parsed, $parts);
  print_r($parts);
}

//With your example URL it should return
array(
  payer_id       => 8675309,
  amount         => 300,
  payment_type   => instant,
  payment_status => complete,
  custom         => 182
)
[/quote]


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