|
Mailing Lists
|
Home /
Groups /
New York ColdFusion Users Group (NYCFUG)
ColdFusion and PayPal SOAP API
Author: sclairmont
Short Link: http://www.houseoffusion.com/groups/nycfug/thread.cfm/threadid:1431#4482
Hello ladies and gentlemen.
It's been a while since I have posted on the cfug mailing list, but I
need help from people who actually read the questions and answer what is
asked. So here's my problem:
I'm using ColdFusion MX7 and trying to integrate PayPal Web Payments
Pro, via SOAP API. Most of it works, but as it's lacking adequate
documentation (for my tastes at least), I'm running into an issue with
the line item receipt option.
I'm trying to use setPaymentDetailsItem, which requires a
PaymentDetailsItemType. I instantiate a java object with
pdi = CreateObject("java",
"com.paypal.soap.api.PaymentDetailsItemType");
pdi.setName("hello world");
pdi.setNumber("1");
pdi.setQuantity(JavaCast("int", 1));
pdi.setAmount(orderTotal);
I am constantly told "The selected method setQuantity was not found.
Either there are no methods with the specified method name and argument
types, or the method setQuantity is overloaded with arguments types that
ColdFusion can't decipher reliably. If this is a Java object and you
verified that the method exists, you may need to use the javacast
function to reduce ambiguity."
doing a CFDUMP shows the method exists. It expects a BigInt, but it
should take an Int.
I've rebooted the server, thinking it may be on of CFs famous code
caching errors, but no luck.
Does anyone have an example of how to use the PaymentDetailsItemType in
ColdFusion? The simpler, the better.
Thank you!
|
June 19, 2013
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||