- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在处理定期付款(快速结帐)并且我有一个 IPN 监听器接收消息。
一切正常,我检查了几个命令、响应和验证。
但我无法使用定期付款测试 IPN,因为我在 IPN 模拟器的“交易类型”选择器中没有该选项:
如何接收 Recurring
Payments IPN 命令?
最佳答案
不幸的是,IPN 模拟器不包括您所显示的定期付款。您需要设置真实的配置文件并在沙盒中测试它们,或者您可以设置自己的模拟器。
只需制作一个基本的 HTML 表单,并将操作设置为您的 IPN URL,然后将隐藏字段添加到表单中,其中包含您希望从任何给定 IPN 获得的名称/值。通过这种方式,您可以在浏览器中加载页面,直接发布并在屏幕上查看结果。这也可以帮助您解决错误。
请记住,以这种方式进行测试时,原始数据并非来自 PayPal,因此不会对其进行验证。您需要确保您的代码逻辑能够相应地处理该问题。
以下是来自定期付款的 IPN 的一些示例。
配置文件已创建
Array
(
[payment_cycle] => Monthly
[txn_type] => recurring_payment_profile_created
[last_name] => Angell
[next_payment_date] => 03:00:00 Sep 12, 2013 PDT
[residence_country] => US
[initial_payment_amount] => 0.00
[currency_code] => USD
[time_created] => 20:17:10 Sep 12, 2013 PDT
[verify_sign] => ASsJ54wcfEJZVuwOMU8vBNHZb1TpAf7F4PMLvKL2uni1hb11jdOgdd2V
[period_type] => Regular
[payer_status] => verified
[test_ipn] => 1
[tax] => 0.00
[payer_email] => sandbo_1204199080_biz@angelleye.com
[first_name] => Drew
[receiver_email] => sandbo_1215254764_biz@angelleye.com
[payer_id] => E7BTGVXBFSUAU
[product_type] => 1
[payer_business_name] => Drew Angell's Test Store
[shipping] => 0.00
[amount_per_cycle] => 30.00
[profile_status] => Active
[charset] => windows-1252
[notify_version] => 3.7
[amount] => 30.00
[outstanding_balance] => 0.00
[recurring_payment_id] => I-VYR2VN3XPVW4
[product_name] => The HALO Foundation Donation
[ipn_track_id] => 348867a2b7815
)
已付款
Array
(
[mc_gross] => 10.00
[period_type] => Regular
[outstanding_balance] => 0.00
[next_payment_date] => 02:00:00 Dec 16, 2013 PST
[protection_eligibility] => Ineligible
[payment_cycle] => every 3 Months
[tax] => 0.00
[payer_id] => 3HMDJA96TEQN4
[payment_date] => 05:19:33 Sep 16, 2013 PDT
[payment_status] => Completed
[product_name] => platypu subscription
[charset] => windows-1252
[recurring_payment_id] => I-R52C41AGNEAP
[first_name] => test
[mc_fee] => 0.64
[notify_version] => 3.7
[amount_per_cycle] => 10.00
[payer_status] => unverified
[currency_code] => USD
[business] => sandbo_1215254764_biz@angelleye.com
[verify_sign] => A4QWarlQUU0cupDGeAi-McuvfslGA7lrbrWV735PGPsr3OKdTRFyJtOq
[payer_email] => test@domain.example
[initial_payment_amount] => 0.00
[profile_status] => Active
[amount] => 10.00
[txn_id] => 34Y69196BK064583G
[payment_type] => instant
[last_name] => test
[receiver_email] => sandbo_1215254764_biz@angelleye.com
[payment_fee] => 0.64
[receiver_id] => ATSCG2QMC9KAU
[txn_type] => recurring_payment
[mc_currency] => USD
[residence_country] => US
[test_ipn] => 1
[receipt_id] => 1660-1430-7506-9911
[transaction_subject] =>
[payment_gross] => 10.00
[shipping] => 0.00
[product_type] => 1
[time_created] => 07:54:24 Sep 05, 2013 PDT
[ipn_track_id] => efd4ee6ea4474
)
付款已跳过
Array
(
[payment_cycle] => Monthly
[txn_type] => recurring_payment_skipped
[last_name] => bitch
[next_payment_date] => 03:00:00 Sep 21, 2013 PDT
[residence_country] => US
[initial_payment_amount] => 0.00
[currency_code] => USD
[time_created] => 19:42:33 Jan 11, 2013 PST
[verify_sign] => AcyQRlWufyrh0B6-n5swEgNB9oNJAkMm65cAu2bQLTevdnT2JnuIyDQO
[period_type] => Regular
[payer_status] => unverified
[test_ipn] => 1
[tax] => 0.00
[payer_email] => tester@hey.com
[first_name] => working
[receiver_email] => sandbo_1215254764_biz@angelleye.com
[payer_id] => 4ATNY663RDKJA
[product_type] => 1
[shipping] => 0.00
[amount_per_cycle] => 10.00
[profile_status] => Active
[charset] => windows-1252
[notify_version] => 3.7
[amount] => 10.00
[outstanding_balance] => 60.00
[recurring_payment_id] => I-LH2MJXG27TR6
[product_name] => Angell EYE Web Hosting
[ipn_track_id] => e3a52d6772d28
)
支付失败
Array
(
[payment_cycle] => every 4 Weeks
[txn_type] => recurring_payment_failed
[last_name] => Tester
[next_payment_date] => 03:00:00 Oct 03, 2013 PDT
[residence_country] => US
[initial_payment_amount] => 0
[currency_code] => JPY
[time_created] => 05:14:37 Aug 01, 2012 PDT
[verify_sign] => AOTn5qT2D05NGLBeQowuGwhI5kTFAIPV01VWay1FayueRmXhAYd2KLZp
[period_type] => Regular
[payer_status] => unverified
[test_ipn] => 1
[tax] => 0
[payer_email] => prachi@signyit.com
[first_name] => Ecaf
[receiver_email] => sandbo_1215254764_biz@angelleye.com
[payer_id] => VCLJR9E79V4KJ
[product_type] => 1
[shipping] => 0
[amount_per_cycle] => 1
[profile_status] => Active
[charset] => windows-1252
[notify_version] => 3.7
[amount] => 1
[outstanding_balance] => 1
[recurring_payment_id] => I-P90BX92X15DR
[product_name] => Welcome to the world of shopping where you get everything
[ipn_track_id] => ab99ea6823e24
)
个人资料已暂停
Array
(
[payment_cycle] => Monthly
[txn_type] => recurring_payment_suspended_due_to_max_failed_payment
[last_name] => Lang
[next_payment_date] => N/A
[residence_country] => US
[initial_payment_amount] => 4.90
[currency_code] => USD
[time_created] => 13:45:44 Nov 04, 2010 PDT
[verify_sign] => A65EYvoNuupMDbNU-2RPi609XJ7LAQ8CzxOV03bR4.O-nKSYG9LjBf10
[period_type] => Regular
[payer_status] => unverified
[test_ipn] => 1
[tax] => 0.00
[payer_email] => corey@angelleye.com
[first_name] => Corey
[receiver_email] => sandbo_1215254764_biz@angelleye.com
[payer_id] => HKHX3D32P9DXG
[product_type] => 1
[shipping] => 0.00
[amount_per_cycle] => 29.95
[profile_status] => Suspended
[charset] => windows-1252
[notify_version] => 3.7
[amount] => 29.95
[outstanding_balance] => 149.75
[recurring_payment_id] => I-Y0E6UC684RS4
[product_name] => Achieve Formulas 30 day supply, monthly.
[ipn_track_id] => 95c39c8a4b39d
)
配置文件已取消
Array
(
[payment_cycle] => Monthly
[txn_type] => recurring_payment_profile_cancel
[last_name] => Testerson
[next_payment_date] => N/A
[residence_country] => US
[initial_payment_amount] => 69.90
[rp_invoice_id] => 4603
[currency_code] => USD
[time_created] => 09:40:52 Feb 11, 2013 PST
[verify_sign] => AGiC06LknLf7LnPNSt03A0q0ajKiAZt35jsIvkcPn5dU7GtRl-ITAf5Q
[period_type] => Regular
[payer_status] => verified
[tax] => 0.00
[payer_email] => payer@email.example
[first_name] => Tester
[receiver_email] => sandbox@domain.example
[payer_id] => Q28888N
[product_type] => 1
[shipping] => 0.00
[amount_per_cycle] => 1.95
[profile_status] => Cancelled
[charset] => windows-1252
[notify_version] => 3.7
[amount] => 1.95
[outstanding_balance] => 0.00
[recurring_payment_id] => I-553Y5PRWJ29F
[product_name] => USBSwiper Monthly Subscription
[ipn_track_id] => 5ecdc90112398
)
定期付款已过期
Array
(
[payment_cycle] => Monthly
[txn_type] => recurring_payment_expired
[last_name] => Testerson
[next_payment_date] => N/A
[residence_country] => US
[initial_payment_amount] => 0.00
[rp_invoice_id] => 1580
[currency_code] => USD
[time_created] => 09:42:46 Jan 12, 2011 PST
[verify_sign] => AbBIww12EQnvrHwYmd1wb98zYz53APIJHOa.GTV4C9Ef0HVE1FWBtxMP
[period_type] => Regular
[payer_status] => unverified
[tax] => 0.00
[first_name] => Tester
[receiver_email] => payments@domain.example
[payer_id] => R7J55555MN
[product_type] => 1
[shipping] => 0.00
[amount_per_cycle] => 1.00
[profile_status] => Cancelled
[charset] => windows-1252
[notify_version] => 3.0
[amount] => 1.00
[outstanding_balance] => 0.00
[recurring_payment_id] => I-M0555555RY
[product_name] => USBSwiper Rental Program
)
关于paypal - 使用 IPN 模拟器发送 Paypal 定期付款命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18823527/
如果我的交易中的次要收款人没有 Paypal 帐户,会发生什么情况。他会收到要求他创建 Paypal 帐户的通知,还是 API 调用不会成功? 我几乎无法知道销售服务的用户在注册我的平台时是否有Pay
我们知道有这么多的支付网关服务提供商,即 Paypal ,moneybrookers,authorize.net以及许多国内和国际的支付网关提供商。现在,我的问题是,开发我们自己的支付网关服务以处理世
我们正在寻求替代我们对 Authorize.net 的使用。我花了很多时间查看 PayPal 文档,但找不到我的问题的明确答案: 使用 thousand 数十种不同的 PayPal API 可以在我们
我实际上是在为客户工作。我已经在网站上成功实现了 paypal pro,并且一切正常,我相信我遵循了他们的流程和指南,使它按照他们的意思工作。 因此,我一直在阅读 this webpage将网站投入生
我有2件商品要出售。我的运输底价为7.50美元,每增加一个项目,则为2.00美元 我已经设置了高级代码 运费= $ 7.50 运费2 = $ 2.00 一切正常,除非在购物车中添加了其他商品后,购物车
我想在不使用购物车的情况下实现一个不太复杂的解决方案。 我在自己对这个问题的回答中详细说明了解决方案,但如果有人能提出更好的方法,我会很高兴。 谢谢 最佳答案 实际上我最近不得不这样做。毫无疑问,我的
我创建了一个带有默认支付网关的shopify 小商店,即paypal express checkout。 当客户点击 Paypal 结帐按钮时,他们被要求输入他们的信用卡号并输入电子邮件并选择密码以注
一段时间以来,我一直在运行一个网站,该网站通过向 Paypal 网站发送一个 notify_url 来记录 Paypal 交易,并监听该 notify_url。我的监听页面解析从 paypal 发送的
我在网络应用程序中使用 PayPal Subscribe 按钮。我想将订阅开始日期传递给 PayPal,这不会总是今天的日期。 通常情况下,如果没有有效订阅,PayPal 会创建一个从今天开始的订阅。
大家好,我遇到了“立即购买”paypal 按钮这个令人沮丧的问题。 我希望我的客户能够通过 paypal 使用借记卡/信用卡付款,而无需创建 paypal 帐户,同时我希望能够根据产品类型将不同的定价
我想实现 paypal 授权并自动获取付款。我用过 Paypal 标准账户。我已发送带有授权参数的付款请求。
我想在我的 Paypal 沙盒账户中测试批量支付。根据 paypal 文档,它描述了将资金转移到 paypal 帐户的步骤。但我想转账到我客户的银行账户。我该怎么做? 仅供引用:PayPal 文档内容
我正在尝试登录我的沙盒帐户(使用 chrome),但由于 paypal 的新变化我不能。 Paypal 现在要求我登录开发者网站。我愿意。 然后我转到应用程序->沙盒帐户,然后按“sanbox 站点”
我有一个支持 Paypal 付款的 opencart 系统。是否有允许用户(信用卡)付款而无需强制注册 Paypal 帐户的选项。到目前为止,我使用的是 paypal 标准模块。 最佳答案 使用 Pa
我可以使用 Paypal ID 和密码使用 Paypal 详细信息进行付款而无需重定向到 Paypal 网站吗?我想在不离开我的网站的情况下完成所有付款流程。谢谢 最佳答案 您可以使用 PayFlow
当我尝试 https://fpdbs.paypal.com/dynamicimageweb?cmd=_dynamicimage 时,图像损坏了. 这是返回的错误信息: “尝试为应用程序构建 prote
我想向我的客户付款,为此我收到了他们的电子邮件,我想验证电子邮件地址是否存在于 paypal 中! 我搜索并找到了我尝试过的支付身份 API,但它只提供了我的我的数据!这是 LINK那个 API。 我
当从用户的 PayPal 账户中扣款时,PayPal 服务器在一定时间内没有响应(超时)。我们决定假设钱确实已经被拿走了,所以我们会退款。但是,如果钱没有从用户账户中扣除会怎样? PayPal返回什么
我有一个网站可以定期(比如每周一次)从客户那里收到钱。我将我的客户详细信息存储在我的数据库中,我想从我的客户帐户中提取资金,而不是每次都提示他们进行身份验证。金额会因客户而异。我怎样才能用 pay p
我有一个表格,其中一个团队签下他们的球员,然后被运送到 Paypal 进行注册付款,然后当一切都完成后我会收到一个 IPN。我正在做一个类似的表格,发现自从我创建该表格以来,Paypal 发生了很大变
我是一名优秀的程序员,十分优秀!