Paypal付款验证

时间:2013-10-29 03:50:57

标签: paypal sdk payment verify proof

您好,对不起我的英语......

我已经为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();
            }
        }
    }

我已经阅读过但我不知道是否需要向购买我的应用的人发送付款证明,或者我只需要获得此证明并保存。另一个问题是如何验证它?我需要遵循哪些步骤?

谢谢!

1 个答案:

答案 0 :(得分:1)

如果您按照示例中的link进行操作,则会看到验证的目的是验证付款是否成功。另一个同样性质的问题得到回答here