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'

Any suggestions?

regards

Andrew

Reply via email to