Paypal Sandbox API测试

时间:2015-06-19 11:47:19

标签: paypal paypal-sandbox

我在Paypal上创建了一个测试API

enter image description here

你知道我必须在这个功能中使用它才能使它工作吗?

  // Creates a configuration array containing credentials and other required configuration parameters.
  public static function getAcctAndConfig()
  {
    $config = array(
        // Signature Credential
        "acct1.UserName" => "",
        "acct1.Password" => "",
        "acct1.Signature" => "",
        // Subject is optional and is required only in case of third party authorization
        //"acct1.Subject" => "",        

        // Sample Certificate Credential
        // "acct1.UserName" => "certuser_biz_api1.paypal.com",
        // "acct1.Password" => "D6JNKKULHN3G5B8A",
        // Certificate path relative to config folder or absolute path in file system
        // "acct1.CertPath" => "cert_key.pem",
        // "acct1.AppId" => "APP-80W284485P519543T"
        );

    return array_merge($config, self::getConfig());;
  }

感谢您的帮助......

1 个答案:

答案 0 :(得分:0)

  • 用户名是您的电子邮件地址
  • 密码可能是ClientID
  • 签名可能是秘密

您应该登录您的Sandbox(实际的PayPal Sandbox网站,而不仅仅是开发人员)帐户并验证是否是这种情况