PayPal 与错误信息的集成然后也可以使用卡获得批准的付款

PayPal integration with wrong information then also get approved payment using card

我正在 PayPal 与 Objective C 集成。我已经完成了 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;
}

但我认为这不会发生,因为我输入了错误的到期日期和安全代码。是否有验证到期日期和安全性或任何身份验证的解决方案?

{
    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;
}

响应清楚地表明您在沙箱 environment.And 中,它将接受任何有效的电子邮件地址。您需要将沙箱环境更改为生产环境。

Paypal Distribution Reference