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:
- Receiver will either click on capture button in account
- It can be done via a API - to capture the payment use DoCapture and void the payment use DoVoid