I am writing a ipn handling php script, and i would like to check the customer has paid the correct amount for the product they have just purchased.
The problem i have is i'm not sure the best way to check if the payment is made in different currencies. We charge in pounds sterling, and hold our prices as pound sterling, but if someone pays in US dollars $10 obviously is not the same as £10.
Does the IPN base all its transactions in one currency (dollars i would assume) i should use as my base instead of pounds sterling, or am i going to have to do some sort of conversion?
Cheers Luke
IPN 'mc_gross' is returned in the currency you charged the buyer for. Whichever currency the buyer finally paid doesn't matter.