You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, When I compile and add the items send this error, if I do not add the items works:
varPayPal=require("de.appwerft.paypal");varitem1=PayPal.createPaymentItem({name: "My item",price: 23,sku: "my-item",quantity: 1,currency: "USD"// Any ISO-4217});varconfiguration=PayPal.createConfiguration({merchantName: "John Doe",merchantPrivacyPolicyURL: "http://google.com",merchantUserAgreementURL: "http://google.com",locale: "en"// Any ISO 639-1});varpayment=PayPal.createPayment({// Requiredconfiguration: configuration,currencyCode: "USD",amount: 23,// Has to match the amount of your items if you set themshortDescription: "Your shopping trip at FooBar",intent: PayPal.PAYMENT_INTENT_SALE,// or: PAYMENT_INTENT_AUTHORIZE, PAYMENT_INTENT_ORDERitems: [item1],// Optional, you can also just specify the amount//shipping : 10.0,//tax : 123});payment.addEventListener("paymentDidCancel",function(e){Ti.API.warn("paymentDidCancel");});payment.addEventListener("paymentDidComplete",function(e){Ti.API.warn("paymentDidComplete");});payment.show();
[ERROR] : KrollProxy: (KrollRuntimeThread) [2,392] Error creating proxy
[ERROR] : KrollProxy: java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.util.ArrayList
[ERROR] : KrollProxy: at de.appwerft.paypal.PaymentProxy.handleCreationDict(PaymentProxy.java:225)
[ERROR] : KrollProxy: at org.appcelerator.kroll.KrollProxy.handleCreationArgs(KrollProxy.java:227)
[ERROR] : KrollProxy: at org.appcelerator.kroll.KrollProxy.setupProxy(KrollProxy.java:135)
[ERROR] : KrollProxy: at org.appcelerator.kroll.KrollProxy.createProxy(KrollProxy.java:143)
[ERROR] : KrollProxy: at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)
[ERROR] : KrollProxy: at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:177)
[ERROR] : KrollProxy: at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:319)
[ERROR] : KrollProxy: at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:203)
[ERROR] : KrollProxy: at android.os.Handler.dispatchMessage(Handler.java:95)
[ERROR] : KrollProxy: at android.os.Looper.loop(Looper.java:137)
[ERROR] : KrollProxy: at
>`org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:118)
The text was updated successfully, but these errors were encountered:
Hi, When I compile and add the items send this error, if I do not add the items works:
The text was updated successfully, but these errors were encountered: