2012-08-01 105 views
0

我正在學習用於移動開發的鈦。目前,我正在嘗試通過Titanium編程學習貝寶使用。我有以下測試代碼。Android的鈦貝寶集成

var ppButton = Ti.Paypal.createPaypalButton({ 
    width: 294, 
    height: 50, 
    bottom: 50, 
    appId: "APP_80W294485PS19543T", 
    buttonStyle: Ti.Paypal.BUTTON_294x43, 
    paypalEnvironment: Ti.Paypal.PAYPAL_ENV_SANDBOX, 
    feePaidByReceiver: false, 
    transactionType: Ti.Paypal.PAYMENT_TYPE_DONATION, 
    enableShipping: false, 
    payment: { 
     amount: 1.50, 
     tax: 0.00, 
     shipping: 0.00, 
     currency: "USD", 
     recipient: "[email protected]", 
     itemDescription: "Donation", 
     merchantName: "American Red Cross" 
    } 
}); 

但是應用程序崩潰對啓動給力關閉錯誤。 任何人都可以指出問題並提出解決方案嗎?我會很感激。

回答

0

請嘗試This

這是一個模塊並通過Appecelerator提供。 下載This並使用此工作正常。