I'm trying to convert a PayPal .JSP express checkout example into a
ColdFusion CFC, but am having difficulties with an array of java objects.
Here's the relevant bit of the jsp:
PaymentDetailsItemType[] paymentItems = new PaymentDetailsItemType[3];
PaymentDetailsItemType paymentItem = new PaymentDetailsItemType();
paymentItem.setName("Photographic Print - Tropical Sunset");
Etc...
Previously, all these java bits are created fine. E.g.:
pp_request=CreateObject("java","com.paypal.soap.api.DoExpressCheckoutPayment
RequestType");
But I can't see how to do the same CreateObject syntax for an array.
Any help would be much appreciated.
Many thanks,
Geoff
You are subscribed to cfcdev. To unsubscribe, please follow the instructions at
http://www.cfczone.org/listserv.cfm
CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]