[英]How can I receive an IPN Notification that I have sent a payment with PayPal - Ruby on Rails
[英]How to get IPN notification in PayPal on localhost
我在PayPal中使用自適應付款。 我正在關注https://github.com/paypal/adaptivepayments-sdk-ruby 。 一切正常,除非我無法在本地接收IPN通知。
@api = PayPal::SDK::AdaptivePayments.new
@pay = @api.build_pay({
:actionType => "PAY",
:cancelUrl => "http://"+Rails.application.config.app_name+"/admin/dashboard",
:currencyCode => "USD",
:feesPayer => "SENDER",
:ipnNotificationUrl => "http://"+Rails.application.config.app_name+"/admin/receive_notification",
:receiverList => {
:receiver => [{
:amount => amount,
:email => @paypal_id }] },
:returnUrl => "http://"+Rails.application.config.app_name+"/admin/dashboard" })
所以,如何在本地主機上接收通知
貝寶將無法路由到本地主機以發送IPN。 您將需要設置一個公共可用的域名和適當的dns。
Localhost始終是特定於您的計算機的,您也許可以使用dynamicdns,但它需要在計算機和網絡上進行網絡更改。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.