PayPal IPN response not getting a payKey or trackingId?

Viewed 1465

I'm trying to get the whole PayPal AdaptivePayments#Pay working, that part works. I pass a bunch of stuff in, get a paykey, which I pass to the approval url:

{returnUrl: urls[:return],
 cancelUrl: urls[:cancel],
 requestEnvelope: {errorLanguage: "en_GB"},
 currencyCode: "GBP",
 trackingId: self.id,
 receiverList: {
   receiver: [{email: Rails.configuration.site_paypal, amount: self.amount, primary: true},
              {email: self.provider.paypal_email, amount: self.amount, primary: false}]
 },
 actionType: "PAY",
 ipnNotificationUrl: urls[:ipn]}

The server comes back with everything correctly, I redirect to the url, it works, I get the payment in my PayPal sandbox account for Rails.configuration.site_paypal and in the IPN history I see the message but I have no way to identify it as it doesn't contain a paykey or trackingId :(

transaction_subject=
txn_type=web_accept
payment_date=10:06:09 Aug 17, 2012 PDT
last_name=Baldry
residence_country=GB
item_name=
payment_gross=
mc_currency=GBP
business=<Rails.configuration.site_paypal>
payment_type=instant
protection_eligibility=Ineligible
verify_sign=Asu0z613h-fyw8CNuZEjSsMXS58PAi46SzR3IvXXTX5JUizhF8vV4z25
payer_status=verified
test_ipn=1
tax=0.00
payer_email=<customer@email.com>
txn_id=9M582867K79935008
quantity=0
receiver_email=<Rails.configuration.site_paypal>
first_name=Michael
payer_id=M7U3UVA3E65VY
receiver_id=375R229JBE3TY
item_number=
payment_status=Completed
mc_gross=157.00
custom=
charset=windows-1252
notify_version=3.6
ipn_track_id=c9fcf587d770f

What am I doing wrong? Ripping my hair out...

Thanks

1 Answers
Related