简体   繁体   English

贝宝沙盒IPN“电子邮件与卖家不符”

[英]Paypal Sandbox IPN “Email does not match seller”

I am trying to create a paypal subscription button with paypal sandbox. 我正在尝试使用贝宝沙盒创建贝宝订阅按钮。 I have created the dev account, created sandbox business and test accounts. 我已经创建了dev帐户,创建了沙箱业务和测试帐户。 Logged into my business test account, went to merchant services -> my saved buttons. 登录到我的业务测试帐户,转到商家服务->我保存的按钮。

Found the subscription button and copied the code. 找到订阅按钮并复制代码。

I have uploaded the form to my codeigniter controller at: http://422clients.com/ftg/paypal/test 我已将表单上传到我的codeigniter控制器, 网址为:http: //422clients.com/ftg/paypal/test

I am using this paypal IPN library for codeigniter: https://github.com/orderly/codeigniter-paypal-ipn 我正在使用此paypal IPN库进行codeigniter: https : //github.com/orderly/codeigniter-paypal-ipn

I am using unmodified controller code for now to handle the IPN response because it writes it to the database just fine for testing: 我现在使用未经修改的控制器代码来处理IPN响应,因为它可以将其写入数据库以进行测试:

function ipn()
    {
        $this->load->library('PayPal_IPN'); // Load the library

        // Try to get the IPN data.
        if ($this->paypal_ipn->validateIPN())
        {
            // Succeeded, now let's extract the order
            $this->paypal_ipn->extractOrder();

            // And we save the order now (persist and extract are separate because you might only want to persist the order in certain circumstances).
            $this->paypal_ipn->saveOrder();

            // Now let's check what the payment status is and act accordingly
            if ($this->paypal_ipn->orderStatus == PayPal_IPN::PAID)
            {
                //Enable database subscription...
            }
        }
        else // Just redirect to the root URL
        {
            $this->load->helper('url');
            redirect('/', 'refresh');
        }
    }

My problem is that when i click the button on the site and pay with my sandbox test account everything looks totally fine and the payment goes through, but when I look in my database it says: Status: ERROR. 我的问题是,当我单击站点上的按钮并使用沙盒测试帐户付款时,一切看上去都很好,付款也可以了,但是当我在数据库中查看时,状态为:错误。

Reason Field says: email business_test@422studios.com does not match seller 原因字段说:电子邮件business_test@422studios.com与卖家不符

business_test@422studios.com is the sandbox account that i generated the button from. business_test@422studios.com是我从中生成按钮的沙盒帐户。

I'm totally lost here. 我在这里完全迷路了。 Any help is appreciated. 任何帮助表示赞赏。

In your config file, make sure you have this: 在您的配置文件中,确保具有以下内容:

$config['paypal_ipn_sandbox_settings'] = array(
    'email' => 'business_test@422studios.com',
    'url' => 'https://www.sandbox.paypal.com/cgi-bin/webscr',
    'debug' => TRUE
);

And that you pass this value in your form: 并以您的形式传递此值:

<input type="hidden" name="business" value="business_test@422studios.com">

enter linkus-mg4.mail.yahoo.com/neo/launch?.rand=3kitrpb4ebcpm#2543298090 description here 1. This is normal text. 在此处输入linkus-mg4.mail.yahoo.com/neo/launch?.rand=3kitrpb4ebcpm#2543298090描述 1.这是正常文本。 2. So is this, but now follows a code block: 2.这也是,但是现在遵循一个代码块:

    Skip a line and indent eight spaces.
    That's four spaces for the list
    and four to trigger the code block.`kakai_junior@yahoo.com

` `

enter link description here 1. This is normal text. 在此处输入链接描述 1.这是正常文本。 2. So is this, but now follows a code block: 2.这也是,但是现在遵循一个代码块:

    Skip a line and indent eight spaces.
    That's four spaces for the list
    and four to trigger the code block.`kakai_junior@yahoo.com

` `

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM