从paypal sdk 2.0.1获取交易ID [英] Get transaction id from paypal sdk 2.0.1
问题描述
如何从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:
这篇关于从paypal sdk 2.0.1获取交易ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!