问题
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
来源:https://stackoverflow.com/questions/6305782/authorize-capture-for-paypal