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

[eluser]CroNiX[/eluser]
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
)


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