I'm looking at the API with a view to using it with a PHP shopping cart and I'm wondering about the best approach to handling a few fairly simple tasks. My primary one is to create invoices for non-Paypal transactions and I'd guess this would entail the following sort of approach: 1. Check if transaction is Paypal internally (if paypal, ignore) 2. Check if customer exists using email address as primary reference 2a. If exists -> 3. 2b. If not exists then create new customer record (be nice if this could be queued as in Paypal plugin) 3. Check if transaction exists (if 2b then probably skip but might keep for completeness). 3a. If exists then next. 3b. If not exists then create invoice/transaction record That'd be a fairly simple approach and I'm sure other folks could come up with much more complex and complete ideas but would that sound about right in terms of approach?
That's sounds goog to me. Don't forget to also include the payment. Is this your own cart or one that's commercially available? You may want to let it also do PayPal sales. That way you don't need to pay for a PayPal Importer subscription.
That would make sense.. *cue: application of clue stick* It's a commercial cart that I only heard of through a colleague in the US. Interspire... not a bad system either. Ah yeah... Hadn't considered that... Hmm... I suppose making it something that someone could disable if they already use the paypal importer would be a good idea.