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"
}
});
但是应用程序崩溃对启动给力关闭错误。 任何人都可以指出问题并提出解决方案吗?我会很感激。