0
我刚设法为Phonegap设置了PayPal插件(Iphone - https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/PayPalPlugin),它可以很好地支付个人费用。Phonegap Paypal插件 - 定期付款?
但有没有人知道这种方法是否可以用来触发定期付款?
这是当前的触发代码 -
function onDeviceReady()
{
try {
// do your thing!
document.addEventListener(PayPal.PaymentEvent.Success, onPaymentSuccess,false);
document.addEventListener(PayPal.PaymentEvent.Canceled, onPaymentCanceled,false);
document.addEventListener(PayPal.PaymentEvent.Failed, onPaymentFailed,false);
window.plugins.paypal.prepare(PayPal.PaymentType.DONATION);
window.plugins.paypal.setPaymentInfo({
paymentCurrency : "USD",
paymentAmount : "00.10",
itemDesc : "network cable",
recipient : "[email protected]",
merchantName : "test Account"
});
} catch (e) {
debug.error(e);
}
}
阅读了这个插件的令人沮丧的有限文档并扫描了源代码 - 我现在不认为它有可能进行定期付款(请纠正我,如果我错了) - 插件似乎不会触发覆盖当在沙箱或现场模式中 - 并且不显示任何错误 - 所以我甚至不确定它是否仍然有效!这Paypal/Phonegap的实施使我疯狂 - 如果任何人有任何其他建议 - 请让我知道!干杯 – Dancer
这个插件现在正在进行全面的检修,并在新的管理下重新编写。你还有问题吗? – SnareChops
很酷 - 好消息 - 我从未实际尝试过 - 转移到项目的不同部分,以期下周再次访问!如果它被重写,我会再去一次。干杯 – Dancer