2013-09-24 58 views

回答

1

@Nikhil Chaurasiya,戴夫從PayPal在這裏。

這裏是PayPalPaymentViewController.h的相關位:

/// If payerId is nil, then PayPalPaymentViewController will treat the user as a one-time "guest": 
/// - if the user logs into their PayPal account, then at the completion of their 
///  transaction they will be logged back out; subsequent payments will require fresh logins. 
/// - if the user pays with a credit card, that credit card information will not be "remembered" 
///  for subsequent payments. 

所以,如果你不知道用戶是否是同一個誰上次使用的應用程序,你應該爲payerId提供nil。另一方面,如果您有明確識別用戶的方式(例如用戶的電子郵件地址),則每次在payerId時都會提供該識別字符串。結果將是,用戶的PayPal登錄或他們的信用卡信息從一個交易記到下一個交易。

如果有疑問,最安全的方法是通過nilpayerId