从paypal sdk 2.0.1获取交易ID [英] Get transaction id from paypal sdk 2.0.1

查看:459
本文介绍了从paypal sdk 2.0.1获取交易ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从paypal sdk 2.0.1获取交易ID,我搜索了很多,但我坚持从paypal sdk 2.0.1获取交易ID。

How to get Transaction id from paypal sdk 2.0.1, i searched a lot but i am stuck at getting transaction id from paypal sdk 2.0.1.

检查以下回复; -

check response below;-

{
client =
 {
    environment = sandbox;
    "paypal_sdk_version" = "2.0.1";
    platform = iOS;
    "product_name" = "PayPal iOS SDK";
 };
response =     
  {
    "create_time" = "2014-04-01T07:02:34Z";
    id = "PAY-3J588144TJ947892HKM5GJCQ";
    intent = sale;
    state = approved;
  };
"response_type" = payment;
 }

上面的代码我得到了工资ID但没有得到交易ID,我怎么能得到事务ID。???

Above code i got pay id but not getting transaction id, how can i get transaction id.???

推荐答案

您应该查看PayPal SDK文档验证移动支付。仔细查看销售交易对象。

You should look at the PayPal SDK documentation to Verify Mobile Payment. Have a closer look to Sale and Transaction object.

销售对象有 id 字段:

id |    string  ID of the sale transaction.

您只需要与 REST API进行交互

编辑:

尝试使用<$ c发送curl请求$ c> NSURLConnection 和 NSMutableRequest ,如示例中所述:

Try to send curl request using NSURLConnection and NSMutableRequest as described in examples:


  1. 为Objective C转换CURL命令

Objective-c相当于卷曲请求

使用iOS进行基本HTTP身份验证

这篇关于从paypal sdk 2.0.1获取交易ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆