1
您好,我的英语水平抱歉...贝宝付款验证
我已实施贝宝SDK为Android,它工作正常!但也许,我的英语我不明白我在这里做:
@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();
}
}
}
我看了一下,但我不知道如果我需要付款证明发送给谁买的人我的应用程序,或者如果我只需要得到这个证明并保存它。另一个问题是我如何验证它?我需要遵循哪些步骤?
谢谢!
好的,但我在哪里把这个代码?在PHP中?我怎么接电话? 卷曲https://svcs.sandbox.paypal.com/AdaptivePayments/PaymentDetails \ -H “X-PAYPAL-SECURITY-用户名:USER_ID” \ -H “X-贝宝安全密码:密码” \ -H “X-PAYPAL-SECURITY-SIGNATURE:签名” \ -H “X-PAYPAL-REQUEST-DATA-FORMAT:NV” \ -H“X-PAYPAL - 响应 - 数据格式: NV” \ -H “X-PAYPAL - 应用 - ID:APP-91B933855X481767M” \ -d “payKey = AP-70M68096ML426802W&requestEnvelope.errorLanguage = EN_US” 再次谢谢 – user2800899