我正在与目标C进行PayPal
集成。我已经完成了PayPal iOS SDK 2.12.9
的集成。我的应用程序使用电子邮件付款正常,但我在使用信用卡付款时遇到问题。我插入当前卡号和不正确的过期日期和安全码然后我也得到了成功的付款,例如" PayPal付款成功!"。我收到了以下JSON
回复。
以下是您的付款证明:
{
client = {
environment = sandbox;
"paypal_sdk_version" = "2.12.9";
platform = iOS;
"product_name" = "PayPal iOS SDK";
};
response = {
"create_time" = "2016-01-08T05:36:38Z";
id = "PAY-69U983095T027654TK2HUVZQ";
intent = sale;
state = approved;
};
"response_type" = payment;
}
但我认为这不会发生,因为我插入了错误的过期日期和安全码。是否有任何解决方案来验证过期日期和安全性或任何身份验证?
答案 0 :(得分:1)
{
client = {
environment = sandbox;
"paypal_sdk_version" = "2.12.9";
platform = iOS;
"product_name" = "PayPal iOS SDK";
};
response = {
"create_time" = "2016-01-08T05:36:38Z";
id = "PAY-69U983095T027654TK2HUVZQ";
intent = sale;
state = approved;
};
"response_type" = payment;
}
回复清楚地表明您处于沙盒环境中。并且它将接受任何有效的电子邮件地址。您需要将沙箱环境更改为生产。