Andrew Madu wrote:
> Jason,
>
>>> var response = (DoDirectPaymentResponseType)
>>>
>>> caller.call("DoDirectPayment", request);
>>>
>>
>> Javascript does not do compile-time type checking, so "casting" is
>>
>> completely unnecessary. Just go ahead and access properties and call
>>
>> methods on your response variable; it will let you know at runtime if
>>
>> those methods or properties don't exist.
>>
>>
>> var response = caller.call("DoDirectPayment", request);
>>
>
> I tried your suggestion and am getting a class cast exception error:
>
> *'com.paypal.sdk.exceptions.TransactionException: ; nested exception is:
> java.lang.ClassCastException'*
Is the ClassCastException occurring on the line you pasted above? I
don't know this API, or what the caller variable is, so it's hard to
help. Can you paste the flowscript surrounding that line so we can get
some context?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]