Basically I need a PHP function, which would give me the status of a Western Union money transfer.
It would need to accept these values: MTCN, sender's first and last, receiver's first and last, sender's state/country, receiver's state/country, amount (always in USD), and date sent.
To which it would check Western Union's Track a Transfer page and return one of four values: "invalid" if the details provided are invalid, "ready" if the transfer is ready to be picked up, "refund" if the sender has requested a refund, and "pickedup" if the transfer was picked up.
It must check to make sure all of the details provided are valid, and not only some of them. Some details must be submitted to the Western Union website, and others can be checked by using regex to cut certain parts of the Western Union site's reply and comparing them.
This should be a relatively simple job for anyone who has experience with this.