你好,对不起我的英语...
我已经为 android 实现了 Paypal sdk,它工作正常!但也许我的英语我不明白我必须在这里做什么:
@Override
protected void onActivityResult (int requestCode, int resultCode, Intent data) {
if (resultCode == Activity.RESULT_OK) {
PaymentConfirmation confirm = data.getParcelableExtra(PaymentActivity.EXTRA_RESULT_CONFIRMATION);
if (confirm != null) {
try {
Log.i("paymentExample", confirm.toJSONObject().toString(4));
// TODO: send 'confirm' to your server for verification.
// see https://developer.paypal.com/webapps/developer/docs/integration/mobile/verify-mobile-payment/
// for more details.
} catch (JSONException e) {
Toast.makeText(this, "Ha ocurrido un error, inténtelo de nuevo en unos instantes", Toast.LENGTH_LONG).show();
IrActivityAnterior();
}
}
}
我已阅读相关信息,但我不知道我是否需要向购买我的应用程序的人发送付款证明,或者我是否只需要获取此证明并保存。另一个问题是我如何验证它?我需要遵循哪些步骤??
谢谢!!
最佳答案
关于 Paypal 付款验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19649328/