Authorize/Capture for PayPal

时光毁灭记忆、已成空白 提交于 2019-12-21 02:56:13

问题


Using PayPal IPN, can we implement delayed payment. Perfect example is Groupon where card is charged only when deal is tipped. Can someone throw light on implementation part using PayPal IPN and also how multiple cards can be charged at once when deal is tipped.


回答1:


For Authorize And Capture:

To make a payment authorize you will have to pass "authorization" in paymentmethod parameter instead of "sale"

  <input type="hidden" name="paymentaction" value="authorization" />

So, For this type of payment, paypal will not charge the sender immediately but will wait till receiver confirmation. To capture this payment two methods are available:

  1. Receiver will either click on capture button in account
  2. It can be done via a API - to capture the payment use DoCapture and void the payment use DoVoid


来源:https://stackoverflow.com/questions/6305782/authorize-capture-for-paypal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!