Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/95.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何通过IOS MSDK2.x从paypal获取付款人id?_Php_Ios_Paypal_Paypal Sandbox - Fatal编程技术网

Php 如何通过IOS MSDK2.x从paypal获取付款人id?

Php 如何通过IOS MSDK2.x从paypal获取付款人id?,php,ios,paypal,paypal-sandbox,Php,Ios,Paypal,Paypal Sandbox,在使用Paypal IOS MSDK2.x和Kount欺诈检查时,我有一个问题 目前,MSDK2.x将在委托中返回付款确认 "- (void)payPalPaymentViewController:(PayPalPaymentViewController *)paymentViewController didCompletePayment:(PayPalPayment *)completedPayment" in this format of PayPalPayment class {

在使用Paypal IOS MSDK2.x和Kount欺诈检查时,我有一个问题

目前,MSDK2.x将在委托中返回付款确认

"- (void)payPalPaymentViewController:(PayPalPaymentViewController *)paymentViewController didCompletePayment:(PayPalPayment *)completedPayment"


 in this format of PayPalPayment class
{
  "client": {
    "environment": "sandbox",
    "paypal_sdk_version": "2.0.0",
    "platform": "iOS",
    "product_name": "PayPal iOS SDK;"
  },
  "response": {
    "create_time": "2014-02-12T22:29:49Z",
    "id": "PAY-564191241M8701234KL57LXI",
    "intent": "sale",
    "state": "approved"
  },
  "response_type": "payment"
}
其中不包括信息“付款人Id”

要使用Konut,Kount服务器需要在查询中提供/更新“付款人Id”。如果通过web表单发出付款请求,paypal服务器将返回此格式的URL,则可以获得此“付款人Id”

"http://<return_url>?paymentId=PAY-6RV70583SB702805EKEYSZ6Y&token=EC-60U79048BN7719609&PayerID=7E7MGXCWTTKK2"
“http://?paymentId=PAY-6RV70583SB702805EKEYSZ6Y&token=EC-60U79048BN7719609&PayerID=7E7MGXCWTTKK2”
我的问题是,如果付款请求是从运行IOS MSDK2.x的移动设备发送的,有人知道如何获取“付款人Id”吗


非常感谢。

实际上我已经解决了这个问题。只是没有时间在这里更新

执行此操作的步骤包括:

  • 使用支付id从此处获取安全令牌 "" 将“POST”与您的paypal专用令牌一起使用

  • 使用安全令牌获取付款人id。 $your_payment_id“

  • 您可以使用curl_setopt在PHP上执行这两个步骤。如果其他人有同样的问题,希望这能有所帮助


    谢谢。

    我不会用这个来获取付款人id?还有其他方法吗??