PocketMoney allows other iPhone applications to post transactions to it. You can figure out your bill at a restaurant or put gas in your car, and with one tap enter it into PocketMoney
Posting transactions from third party applications to PocketMoney is simple. The rest of this post gives a quick overview on how to implement it if you are an iPhone developer and want to simplify your customers lives a little bit.
Here is the code to post the total bill of $45 from CheckPlease to PocketMoney…
NSString *urlString = @”ireceipt://hostlocation/post=?category=Food:Dining&amount=-45¤cyCode=USD&showUI=showUIifIncomplete”;
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]];
This part stays the same.
The rest of the url is optional:
category – category to post to
payee – who is paid or receives money
amount – amount of transaction (negative for withdrawals or transfers from an account, positive for deposits or transfers to an account)
currencyCode – three character currency code
xrate – exchange rate
cleared – NO or N for uncleared transaction (default), YES or Y for a cleared transaction
class – class field
transfertoaccountname – account to transfer money to
chknum – id/check number field
memo – memo field
showUI - SHOWUIIFINCOMPLETE (default) – if required data is missing then prompt for data. NEVER – post transaction, never prompt. ALWAYS prompt for data.